mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add check for valid rootTag in ReactRootView
Reviewed By: AaaChiuuu Differential Revision: D5796097 fbshipit-source-id: 1aed793dd77864f1b2cb20e64049483a084f0bc0
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user