Permalink
Browse files

Add check for valid rootTag in ReactRootView

Reviewed By: AaaChiuuu

Differential Revision: D5796097

fbshipit-source-id: 1aed793dd77864f1b2cb20e64049483a084f0bc0
  • Loading branch information...
Hongtan Du authored and facebook-github-bot committed Sep 8, 2017
1 parent b89d6c8 commit c893989d21ad7a68a4b3117fee2b9ebba745b03c
Showing with 3 additions and 1 deletion.
  1. +3 −1 ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java
@@ -279,7 +279,9 @@ public void setEventListener(ReactRootViewEventListener eventListener) {
public void setAppProperties(@Nullable Bundle appProperties) {
UiThreadUtil.assertOnUiThread();
mAppProperties = appProperties;
runApplication();
if (getRootViewTag() != 0) {
runApplication();
}
}
/**

0 comments on commit c893989

Please sign in to comment.