mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Refactor ComponentFactoryDelegate class
Summary: This diff refactors the ComponentFactoryDelegate class. It also introduces a new class called ComponentRegistry that will be used to register components into fabric changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D22985313 fbshipit-source-id: e33a3d4fcb3a1c509b80c6ff1f43889480b1c2c3
This commit is contained in:
1 parent
7d5383eea8
commit
f441fe6d45
9 files changed
+49
-22
No files matched your search
@@ -42,15 +42,15 @@ import com.facebook.systrace.Systrace;
|
||||
public class FabricJSIModuleProvider implements JSIModuleProvider<UIManager> {
|
||||
|
||||
@NonNull private final ReactApplicationContext mReactApplicationContext;
|
||||
@NonNull private final ComponentFactoryDelegate mComponentFactoryDelegate;
|
||||
@NonNull private final ComponentFactory mComponentFactory;
|
||||
@NonNull private final ReactNativeConfig mConfig;
|
||||
|
||||
public FabricJSIModuleProvider(
|
||||
@NonNull ReactApplicationContext reactApplicationContext,
|
||||
@NonNull ComponentFactoryDelegate componentFactoryDelegate,
|
||||
@NonNull ComponentFactory componentFactory,
|
||||
@NonNull ReactNativeConfig config) {
|
||||
mReactApplicationContext = reactApplicationContext;
|
||||
mComponentFactoryDelegate = componentFactoryDelegate;
|
||||
mComponentFactory = componentFactory;
|
||||
mConfig = config;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ public class FabricJSIModuleProvider implements JSIModuleProvider<UIManager> {
|
||||
uiManager,
|
||||
eventBeatManager,
|
||||
jsMessageQueueThread,
|
||||
mComponentFactoryDelegate,
|
||||
mComponentFactory,
|
||||
mConfig);
|
||||
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||
return uiManager;
|
||||
@@ -121,7 +121,7 @@ public class FabricJSIModuleProvider implements JSIModuleProvider<UIManager> {
|
||||
LayoutMetricsConversions.class.getClass();
|
||||
MountingManager.class.getClass();
|
||||
Binding.class.getClass();
|
||||
ComponentFactoryDelegate.class.getClass();
|
||||
ComponentFactory.class.getClass();
|
||||
FabricComponents.class.getClass();
|
||||
FabricSoLoader.class.getClass();
|
||||
FabricUIManager.class.getClass();
|
||||
|
||||
Reference in new issue
Block a user