mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-18 12:12:15 +08:00
Add check for valid rootTag in ReactRootView
Reviewed By: AaaChiuuu Differential Revision: D5796097 fbshipit-source-id: 1aed793dd77864f1b2cb20e64049483a084f0bc0
This commit is contained in:
committed by
Facebook Github Bot
parent
b89d6c8e04
commit
c893989d21
@@ -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