On Android, seperate logic to initialize JS from starting the app

Reviewed By: achen1

Differential Revision: D6606265

fbshipit-source-id: d432661b5f8aa2b7600b1140e1617aab852f343e
This commit is contained in:
Ram N
2017-12-19 20:17:28 -08:00
committed by Facebook Github Bot
parent 19a9c5e41d
commit 4996b9aeb4
2 changed files with 57 additions and 29 deletions

View File

@@ -1044,7 +1044,7 @@ public class ReactInstanceManager {
UIManagerModule uiManagerModule = catalystInstance.getNativeModule(UIManagerModule.class);
final int rootTag = uiManagerModule.addRootView(rootView);
rootView.setRootViewTag(rootTag);
rootView.runApplication();
rootView.invokeJSEntryPoint();
Systrace.beginAsyncSection(
TRACE_TAG_REACT_JAVA_BRIDGE,
"pre_rootView.onAttachedToReactInstance",