Add check for valid rootTag in ReactRootView

Reviewed By: AaaChiuuu

Differential Revision: D5796097

fbshipit-source-id: 1aed793dd77864f1b2cb20e64049483a084f0bc0
This commit is contained in:
Hongtan Du authored and Facebook Github Bot committed 2017-09-08 14:17:38 -07:00
1 parent b89d6c8e04
commit c893989d21
1 file changed
+3 -1
@@ -279,7 +279,9 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView
public void setAppProperties(@Nullable Bundle appProperties) {
UiThreadUtil.assertOnUiThread();
mAppProperties = appProperties;
runApplication();
if (getRootViewTag() != 0) {
runApplication();
}
}
/**