react-native-navigation 8.8.2-snapshot.2494 → 8.8.2-snapshot.2495
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/RNNAppDelegate.mm +15 -4
- package/package.json +1 -1
package/ios/RNNAppDelegate.mm
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
#import <react/featureflags/ReactNativeFeatureFlagsDefaults.h>
|
|
5
5
|
|
|
6
6
|
#import "RCTAppSetupUtils.h"
|
|
7
|
-
#import <React/CoreModulesPlugins.h>
|
|
8
7
|
#if __has_include(<React/RCTCxxBridgeDelegate.h>)
|
|
9
8
|
#import <React/RCTCxxBridgeDelegate.h>
|
|
10
9
|
#endif
|
|
@@ -56,12 +55,17 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
|
|
|
56
55
|
- (BOOL)application:(UIApplication *)application
|
|
57
56
|
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
58
57
|
|
|
58
|
+
// RN 0.77 & RN0.78
|
|
59
59
|
#if !RNN_RN_VERSION_79_OR_NEWER
|
|
60
|
-
|
|
60
|
+
#if __has_include(<ReactAppDependencyProvider/RCTAppDependencyProvider.h>)
|
|
61
|
+
self.dependencyProvider = [RCTAppDependencyProvider new];
|
|
62
|
+
#endif
|
|
63
|
+
// RN 0.77
|
|
61
64
|
#if !RNN_RN_VERSION_78
|
|
65
|
+
[self _setUpFeatureFlags];
|
|
62
66
|
self.rootViewFactory = [self createRCTRootViewFactory];
|
|
63
|
-
#else
|
|
64
|
-
self.reactNativeFactory = [[RCTReactNativeFactory alloc]
|
|
67
|
+
#else // RN0.78
|
|
68
|
+
self.reactNativeFactory = [[RCTReactNativeFactory alloc] initWithDelegate:self];
|
|
65
69
|
self.reactNativeFactory.rootViewFactory = [self createRCTRootViewFactory];
|
|
66
70
|
#endif
|
|
67
71
|
|
|
@@ -119,6 +123,13 @@ didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
|
|
119
123
|
return [[RCTRootViewFactory alloc] initWithConfiguration:configuration andTurboModuleManagerDelegate:self];
|
|
120
124
|
}
|
|
121
125
|
|
|
126
|
+
#pragma mark - RCTTurboModuleManagerDelegate
|
|
127
|
+
|
|
128
|
+
- (id<RCTTurboModule>)getModuleInstanceFromClass:(Class)moduleClass
|
|
129
|
+
{
|
|
130
|
+
return RCTAppSetupDefaultModuleFromClass(moduleClass, self.dependencyProvider);
|
|
131
|
+
}
|
|
132
|
+
|
|
122
133
|
#pragma mark - Feature Flags
|
|
123
134
|
class RCTAppDelegateBridgelessFeatureFlags : public facebook::react::ReactNativeFeatureFlagsDefaults {
|
|
124
135
|
public:
|
package/package.json
CHANGED