Restore correct placement of PRE_RUN_JS_BUNDLE_START

Reviewed By: alexeylang

Differential Revision: D5640104

fbshipit-source-id: f0709f16874cca5147fdfc539727ec4225ca539b
This commit is contained in:
Kathy Gray 2017-08-17 06:11:59 -07:00 committed by Facebook Github Bot
parent c080fe54d6
commit 3c12faf01c
1 changed files with 1 additions and 4 deletions

View File

@ -1021,8 +1021,8 @@ public class ReactInstanceManager {
if (Systrace.isTracing(TRACE_TAG_REACT_APPS | TRACE_TAG_REACT_JSC_CALLS)) {
catalystInstance.setGlobalVariable("__RCTProfileIsProfiling", "true");
}
ReactMarker.logMarker(ReactMarkerConstants.PRE_RUN_JS_BUNDLE_START);
catalystInstance.runJSBundle();
// Transitions functions in the minitFunctions list to catalystInstance, to run after the bundle
// TODO T20546472
if (!mInitFunctions.isEmpty()) {
@ -1030,11 +1030,8 @@ public class ReactInstanceManager {
((CatalystInstanceImpl) catalystInstance).callFunction(function);
}
}
ReactMarker.logMarker(ReactMarkerConstants.PRE_RUN_JS_BUNDLE_START);
reactContext.initializeWithInstance(catalystInstance);
return reactContext;
}