react-native-navigation 8.3.1-snapshot.1855 → 8.3.2-snapshot.1864

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.
@@ -16,7 +16,7 @@ class ModalContentLayout(context: Context?) : ReactViewGroup(context), RootView{
16
16
 
17
17
  private val mJSTouchDispatcher = JSTouchDispatcher(this)
18
18
 
19
- override fun onChildStartedNativeGesture(child: View, androidEvent: MotionEvent) {
19
+ override fun onChildStartedNativeGesture(child: View?, androidEvent: MotionEvent) {
20
20
  mJSTouchDispatcher.onChildStartedNativeGesture(androidEvent, this.getEventDispatcher())
21
21
  }
22
22
  override fun onChildStartedNativeGesture(androidEvent: MotionEvent) {
@@ -31,7 +31,7 @@ class ModalContentLayout(context: Context?) : ReactViewGroup(context), RootView{
31
31
  return UIManagerHelper.getEventDispatcher(reactContext, UIManagerType.FABRIC) ?: throw IllegalStateException("EventDispatcher for Fabric UI Manager is not found")
32
32
  }
33
33
 
34
- override fun handleException(t: Throwable?) {
34
+ override fun handleException(t: Throwable) {
35
35
  getReactContext().handleException(RuntimeException(t))
36
36
  }
37
37
 
@@ -13,7 +13,18 @@
13
13
  #import <React/RCTSurfacePresenterStub.h>
14
14
  #import <React/RCTSurfacePresenterBridgeAdapter.h>
15
15
  #import <ReactCommon/RCTTurboModuleManager.h>
16
- #import <react/config/ReactNativeConfig.h>
16
+
17
+ #import <React-RCTAppDelegate/RCTAppDelegate.h>
18
+ #import <React-RCTAppDelegate/RCTReactNativeFactory.h>
19
+
20
+ #if __has_include(<React-RCTAppDelegate/RCTReactNativeFactory.h>)
21
+ #elif __has_include(<React_RCTAppDelegate/RCTReactNativeFactory.h>)
22
+ #else
23
+ // RN 0.77 support
24
+ #define RN077
25
+ #import <react/config/ReactNativeConfig.h>
26
+ #endif
27
+
17
28
  #import <react/renderer/runtimescheduler/RuntimeScheduler.h>
18
29
  #import <react/renderer/runtimescheduler/RuntimeSchedulerCallInvoker.h>
19
30
  #import <React/RCTSurfacePresenter.h>
@@ -37,15 +48,17 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
37
48
  - (BOOL)application:(UIApplication *)application
38
49
  didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
39
50
 
51
+ #ifdef RN077
40
52
  [self _setUpFeatureFlags];
41
-
42
- // Copied from RCTAppDelegate, it private inside it
43
53
  self.rootViewFactory = [self createRCTRootViewFactory];
44
-
45
54
  [RCTComponentViewFactory currentComponentViewFactory].thirdPartyFabricComponentsProvider = self;
46
-
47
55
  RCTAppSetupPrepareApp(application, self.newArchEnabled);
48
56
  RCTSetNewArchEnabled(TRUE);
57
+ #else
58
+ self.reactNativeFactory = [RCTReactNativeFactory new];
59
+ self.reactNativeFactory = [self.reactNativeFactory initWithDelegate:self];
60
+ #endif
61
+
49
62
  RCTEnableTurboModuleInterop(YES);
50
63
  RCTEnableTurboModuleInteropBridgeProxy(YES);
51
64
 
@@ -56,34 +69,37 @@ static NSString *const kRNConcurrentRoot = @"concurrentRoot";
56
69
  return YES;
57
70
  }
58
71
 
72
+ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
73
+ [NSException raise:@"RCTBridgeDelegate::sourceURLForBridge not implemented"
74
+ format:@"Subclasses must implement a valid sourceURLForBridge method"];
75
+ return nil;
76
+ }
77
+
78
+ - (BOOL)concurrentRootEnabled {
79
+ return true;
80
+ }
81
+
82
+
83
+
84
+ #ifdef RN077
59
85
  - (RCTRootViewFactory *)createRCTRootViewFactory
60
86
  {
61
87
  __weak __typeof(self) weakSelf = self;
62
88
  RCTBundleURLBlock bundleUrlBlock = ^{
63
- RCTAppDelegate *strongSelf = weakSelf;
64
- return strongSelf.bundleURL;
89
+ RCTAppDelegate *strongSelf = weakSelf;
90
+ return strongSelf.bundleURL;
65
91
  };
66
92
 
67
93
  RCTRootViewFactoryConfiguration *configuration =
68
- [[RCTRootViewFactoryConfiguration alloc] initWithBundleURLBlock:bundleUrlBlock
69
- newArchEnabled:self.newArchEnabled];
94
+ [[RCTRootViewFactoryConfiguration alloc] initWithBundleURLBlock:bundleUrlBlock
95
+ newArchEnabled:self.newArchEnabled];
70
96
 
71
97
 
72
98
  return [[RCTRootViewFactory alloc] initWithConfiguration:configuration andTurboModuleManagerDelegate:self];
73
99
  }
74
100
 
75
- - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge {
76
- [NSException raise:@"RCTBridgeDelegate::sourceURLForBridge not implemented"
77
- format:@"Subclasses must implement a valid sourceURLForBridge method"];
78
- return nil;
79
- }
80
-
81
- - (BOOL)concurrentRootEnabled {
82
- return true;
83
- }
84
101
 
85
102
  #pragma mark - Feature Flags
86
-
87
103
  class RCTAppDelegateBridgelessFeatureFlags : public facebook::react::ReactNativeFeatureFlagsDefaults {
88
104
  public:
89
105
  bool enableBridgelessArchitecture() override
@@ -113,6 +129,7 @@ class RCTAppDelegateBridgelessFeatureFlags : public facebook::react::ReactNative
113
129
  facebook::react::ReactNativeFeatureFlags::override(
114
130
  std::make_unique<RCTAppDelegateBridgelessFeatureFlags>());
115
131
  }
132
+ #endif
116
133
 
117
134
  @end
118
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation",
3
- "version": "8.3.1-snapshot.1855",
3
+ "version": "8.3.2-snapshot.1864",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,
@@ -77,15 +77,15 @@
77
77
  "@babel/preset-env": "^7.25.3",
78
78
  "@babel/runtime": "^7.25.0",
79
79
  "@babel/types": "7.25.0",
80
- "@react-native-community/cli": "15.0.1",
81
- "@react-native-community/cli-platform-android": "15.0.1",
82
- "@react-native-community/cli-platform-ios": "15.0.1",
80
+ "@react-native-community/cli": "15.1.0",
81
+ "@react-native-community/cli-platform-android": "15.1.0",
82
+ "@react-native-community/cli-platform-ios": "15.1.0",
83
83
  "@react-native-community/datetimepicker": "^8.2.0",
84
84
  "@react-native-community/netinfo": "^11.4.1",
85
- "@react-native/babel-preset": "0.77.2",
86
- "@react-native/eslint-config": "0.77.2",
87
- "@react-native/metro-config": "0.77.2",
88
- "@react-native/typescript-config": "0.77.2",
85
+ "@react-native/babel-preset": "0.78.3",
86
+ "@react-native/eslint-config": "0.78.3",
87
+ "@react-native/metro-config": "0.78.3",
88
+ "@react-native/typescript-config": "0.78.3",
89
89
  "@testing-library/jest-native": "^5.4.2",
90
90
  "@testing-library/react-native": "^13.0.1",
91
91
  "@types/hoist-non-react-statics": "^3.3.6",
@@ -102,8 +102,8 @@
102
102
  "eslint": "^8.19.0",
103
103
  "eslint-config-prettier": "6.11.0",
104
104
  "eslint-formatter-codeframe": "^7.32.1",
105
- "eslint-plugin-prettier": "3.1.4",
106
105
  "eslint-plugin-jest": "^28.11.0",
106
+ "eslint-plugin-prettier": "3.1.4",
107
107
  "github-release-notes": "https://github.com/yogevbd/github-release-notes/tarball/e601b3dba72dcd6cba323c1286ea6dd0c0110b58",
108
108
  "husky": "4.2.5",
109
109
  "identity-obj-proxy": "3.0.0",
@@ -112,14 +112,14 @@
112
112
  "pixelmatch": "^5.2.1",
113
113
  "pngjs": "^6.0.0",
114
114
  "prettier": "2.8.8",
115
- "react": "18.3.1",
116
- "react-native": "0.77.2",
115
+ "react": "19.0.0",
116
+ "react-native": "0.78.3",
117
117
  "react-native-fast-image": "^8.6.3",
118
118
  "react-native-gesture-handler": "^2.22.1",
119
- "react-native-reanimated": "3.16.7",
120
- "react-redux": "5.x.x",
121
- "react-test-renderer": "18.3.1",
122
- "redux": "3.x.x",
119
+ "react-native-reanimated": "3.19.1",
120
+ "react-redux": "9.1.2",
121
+ "react-test-renderer": "19.0.0",
122
+ "redux": "^5.0.1",
123
123
  "remx": "3.x.x",
124
124
  "semver": "5.x.x",
125
125
  "shell-utils": "1.x.x",