Commit c0c5439 1 parent 2e9a376 commit c0c5439 Copy full SHA for c0c5439
File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 9
9
#import < React/RCTBridge.h>
10
10
#import < React/RCTRootView.h>
11
11
12
- #if RCT_TM_FABRIC_ENABLED
12
+ #if RCT_NEW_ARCH_ENABLED
13
13
14
14
#ifndef RCT_USE_HERMES
15
15
#if __has_include(<reacthermes/HermesExecutorFactory.h>)
34
34
moduleName : (NSString *_Nonnull)moduleName
35
35
initialProperties : (nullable NSDictionary *)initialProperties ;
36
36
37
- #if RCT_TM_FABRIC_ENABLED
37
+ #if RCT_NEW_ARCH_ENABLED
38
38
+ (id <RCTTurboModule> _Nonnull)defaultModuleInstanceFromClass : (Class _Nonnull)moduleClass ;
39
39
+ (std::unique_ptr<facebook::react::JSExecutorFactory>)
40
40
defaultJsExecutorFactoryForBridge:(RCTBridge *_Nonnull)bridge
Original file line number Diff line number Diff line change 7
7
8
8
#import " RCTAppSetupUtils.h"
9
9
10
- #if RCT_TM_FABRIC_ENABLED
10
+ #if RCT_NEW_ARCH_ENABLED
11
11
// Turbo Module
12
12
#import < React/CoreModulesPlugins.h>
13
13
#import < React/RCTDataRequestHandler.h>
@@ -52,7 +52,7 @@ + (void)prepareApp:(UIApplication *)application
52
52
InitializeFlipper (application);
53
53
#endif
54
54
55
- #if RCT_TM_FABRIC_ENABLED
55
+ #if RCT_NEW_ARCH_ENABLED
56
56
RCTEnableTurboModule (YES );
57
57
#endif
58
58
}
@@ -61,7 +61,7 @@ + (UIView *)defaultRootViewWithBridge:(RCTBridge *)bridge
61
61
moduleName : (NSString *)moduleName
62
62
initialProperties : (NSDictionary *)initialProperties
63
63
{
64
- #if RCT_TM_FABRIC_ENABLED
64
+ #if RCT_NEW_ARCH_ENABLED
65
65
return [[RCTFabricSurfaceHostingProxyRootView alloc ] initWithBridge: bridge
66
66
moduleName: moduleName
67
67
initialProperties: initialProperties];
@@ -70,7 +70,7 @@ + (UIView *)defaultRootViewWithBridge:(RCTBridge *)bridge
70
70
#endif
71
71
}
72
72
73
- #if RCT_TM_FABRIC_ENABLED
73
+ #if RCT_NEW_ARCH_ENABLED
74
74
+ (id <RCTTurboModule>)defaultModuleInstanceFromClass : (Class )moduleClass
75
75
{
76
76
// Set up the default RCTImageLoader and RCTNetworking modules.
Original file line number Diff line number Diff line change 6
6
7
7
#import < React/RCTAppSetupUtils.h>
8
8
9
- #if RCT_TM_FABRIC_ENABLED
9
+ #if RCT_NEW_ARCH_ENABLED
10
10
#import < React/CoreModulesPlugins.h>
11
11
#import < React/RCTCxxBridgeDelegate.h>
12
12
#import < ReactCommon/RCTTurboModuleManager.h>
@@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
33
33
34
34
RCTBridge *bridge = [[RCTBridge alloc ] initWithDelegate: self launchOptions: launchOptions];
35
35
36
- #if RCT_TM_FABRIC_ENABLED
36
+ #if RCT_NEW_ARCH_ENABLED
37
37
_contextContainer = std::make_shared<facebook::react::ContextContainer const >();
38
38
_reactNativeConfig = std::make_shared<facebook::react::EmptyReactNativeConfig const >();
39
39
_contextContainer->insert (" ReactNativeConfig" , _reactNativeConfig);
@@ -68,7 +68,7 @@ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
68
68
#endif
69
69
}
70
70
71
- #if RCT_TM_FABRIC_ENABLED
71
+ #if RCT_NEW_ARCH_ENABLED
72
72
73
73
#pragma mark - RCTCxxBridgeDelegate
74
74
You can’t perform that action at this time.
0 commit comments