mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 06:22:39 +08:00
Adding configuration of Fabric inside ReactRootView.
Reviewed By: achen1 Differential Revision: D7102701 fbshipit-source-id: f655327372c42ad86042011a3af3ee693d14014a
This commit is contained in:
committed by
Facebook Github Bot
parent
6b45fb2cb1
commit
b5b0ee853e
@@ -1007,7 +1007,8 @@ public class ReactInstanceManager {
|
||||
CatalystInstance catalystInstance) {
|
||||
Log.d(ReactConstants.TAG, "ReactInstanceManager.attachRootViewToInstance()");
|
||||
Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "attachRootViewToInstance");
|
||||
final int rootTag = catalystInstance.getNativeModule(UIManagerModule.class).addRootView(rootView);
|
||||
UIManager uiManagerModule = rootView.isFabric() ? catalystInstance.getFabricUIManager() : catalystInstance.getNativeModule(UIManagerModule.class);
|
||||
final int rootTag = uiManagerModule.addRootView(rootView);
|
||||
rootView.setRootViewTag(rootTag);
|
||||
rootView.invokeJSEntryPoint();
|
||||
Systrace.beginAsyncSection(
|
||||
|
||||
Reference in New Issue
Block a user