From ce4e41ac2e9bcaa35d3203e44d99c24b8079aed9 Mon Sep 17 00:00:00 2001 From: Ben Nham Date: Wed, 30 Aug 2017 05:13:23 -0700 Subject: [PATCH] fix content appeared logging Reviewed By: AaaChiuuu Differential Revision: D5694558 fbshipit-source-id: 9d3ed839c301e700c715de1bbde7f6e44d12f605 --- .../src/main/java/com/facebook/react/ReactRootView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java index e33f85ee9..9d0828394 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java +++ b/ReactAndroid/src/main/java/com/facebook/react/ReactRootView.java @@ -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 {