fix content appeared logging

Reviewed By: AaaChiuuu

Differential Revision: D5694558

fbshipit-source-id: 9d3ed839c301e700c715de1bbde7f6e44d12f605
This commit is contained in:
Ben Nham 2017-08-30 05:13:23 -07:00 committed by Facebook Github Bot
parent d63cf13ce1
commit ce4e41ac2e
1 changed files with 2 additions and 1 deletions

View File

@ -233,7 +233,6 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView
mReactInstanceManager = reactInstanceManager;
mJSModuleName = moduleName;
mAppProperties = initialProperties;
mShouldLogContentAppeared = true;
if (!mReactInstanceManager.hasStartedCreatingInitialContext()) {
mReactInstanceManager.createReactContextInBackground();
@ -308,6 +307,8 @@ public class ReactRootView extends SizeMonitoringFrameLayout implements RootView
appParams.putMap("initialProps", Arguments.fromBundle(appProperties));
}
mShouldLogContentAppeared = true;
String jsAppModuleName = getJSModuleName();
catalystInstance.getJSModule(AppRegistry.class).runApplication(jsAppModuleName, appParams);
} finally {