mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Expose rootViewTag for ReactRootView
Reviewed By: AaaChiuuu Differential Revision: D3630452 fbshipit-source-id: 9e7e750051b8bd5c60971a82740916e2e5faf6f6
This commit is contained in:
committed by
Facebook Github Bot 7
parent
23ede0fbc7
commit
7d27f4941c
@@ -773,6 +773,7 @@ import static com.facebook.react.bridge.ReactMarkerConstants.RUN_JS_BUNDLE_START
|
||||
|
||||
UIManagerModule uiManagerModule = catalystInstance.getNativeModule(UIManagerModule.class);
|
||||
int rootTag = uiManagerModule.addMeasuredRootView(rootView);
|
||||
rootView.setRootViewTag(rootTag);
|
||||
@Nullable Bundle launchOptions = rootView.getLaunchOptions();
|
||||
WritableMap initialProps = launchOptions != null
|
||||
? Arguments.fromBundle(launchOptions)
|
||||
|
||||
Reference in New Issue
Block a user