Implement onViewAppear by creating a new EventListener on ReactRootView listening for when it's attached to a RN Instance

Reviewed By: AaaChiuuu

Differential Revision: D4269272

fbshipit-source-id: 6dd54f8ab7befebd54e82ef355119ba302b9bfe5
This commit is contained in:
Don Yu
2016-12-07 09:49:51 -08:00
committed by Facebook Github Bot
parent 7f8c2985a8
commit bfe551d2d1
2 changed files with 22 additions and 0 deletions
@@ -810,6 +810,7 @@ import static com.facebook.systrace.Systrace.TRACE_TAG_REACT_JAVA_BRIDGE;
appParams.putDouble("rootTag", rootTag);
appParams.putMap("initialProps", initialProps);
catalystInstance.getJSModule(AppRegistry.class).runApplication(jsAppModuleName, appParams);
rootView.onAttachedToReactInstance();
Systrace.endSection(TRACE_TAG_REACT_JAVA_BRIDGE);
}