react-native-navigation 8.8.2-snapshot.2492 → 8.8.2-snapshot.2496
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/android/src/main/java/com/reactnativenavigation/react/DevBundleDownloadListenerAdapter.java +5 -8
- package/android/src/main/java/com/reactnativenavigation/react/JsDevReloadHandlerFacade.java +5 -8
- package/android/src/main/java/com/reactnativenavigation/react/ReloadHandlerFacade.java +5 -8
- package/ios/BottomTabsAfterInitialTabAttacher.mm +4 -0
- package/ios/BottomTabsTogetherAttacher.mm +4 -0
- package/ios/RNNAppDelegate.mm +15 -4
- package/package.json +12 -11
package/android/src/main/java/com/reactnativenavigation/react/DevBundleDownloadListenerAdapter.java
CHANGED
|
@@ -6,17 +6,14 @@ import javax.annotation.Nullable;
|
|
|
6
6
|
|
|
7
7
|
public class DevBundleDownloadListenerAdapter implements DevBundleDownloadListener, NavigationDevBundleDownloadListener {
|
|
8
8
|
@Override
|
|
9
|
-
public void onSuccess() {
|
|
10
|
-
onSuccess();
|
|
11
|
-
}
|
|
9
|
+
public void onSuccess() {}
|
|
12
10
|
|
|
13
|
-
@Override
|
|
14
11
|
public void onProgress(@Nullable String status, @Nullable Integer done, @Nullable Integer total) {
|
|
15
|
-
|
|
12
|
+
onProgress(status, done, total, null);
|
|
16
13
|
}
|
|
17
14
|
|
|
18
|
-
@
|
|
19
|
-
public void onFailure(Exception cause) {
|
|
15
|
+
public void onProgress(@Nullable String status, @Nullable Integer done, @Nullable Integer total, @Nullable Integer totalDone) {}
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
@Override
|
|
18
|
+
public void onFailure(Exception cause) {}
|
|
22
19
|
}
|
|
@@ -6,17 +6,14 @@ import javax.annotation.Nullable;
|
|
|
6
6
|
|
|
7
7
|
public class JsDevReloadHandlerFacade implements DevBundleDownloadListener, NavigationDevBundleDownloadListener {
|
|
8
8
|
@Override
|
|
9
|
-
public void onSuccess() {
|
|
10
|
-
onSuccess();
|
|
11
|
-
}
|
|
9
|
+
public void onSuccess() {}
|
|
12
10
|
|
|
13
|
-
@Override
|
|
14
11
|
public void onProgress(@Nullable String status, @Nullable Integer done, @Nullable Integer total) {
|
|
15
|
-
|
|
12
|
+
onProgress(status, done, total, null);
|
|
16
13
|
}
|
|
17
14
|
|
|
18
|
-
@
|
|
19
|
-
public void onFailure(Exception cause) {
|
|
15
|
+
public void onProgress(@Nullable String status, @Nullable Integer done, @Nullable Integer total, @Nullable Integer totalDone) {}
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
@Override
|
|
18
|
+
public void onFailure(Exception cause) {}
|
|
22
19
|
}
|
|
@@ -6,17 +6,14 @@ import javax.annotation.Nullable;
|
|
|
6
6
|
|
|
7
7
|
public abstract class ReloadHandlerFacade implements DevBundleDownloadListener {
|
|
8
8
|
@Override
|
|
9
|
-
public void onSuccess() {
|
|
9
|
+
public void onSuccess() {}
|
|
10
10
|
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@Override
|
|
14
11
|
public void onProgress(@Nullable String status, @Nullable Integer done, @Nullable Integer total) {
|
|
15
|
-
|
|
12
|
+
onProgress(status, done, total, null);
|
|
16
13
|
}
|
|
17
14
|
|
|
18
|
-
@
|
|
19
|
-
public void onFailure(Exception cause) {
|
|
15
|
+
public void onProgress(@Nullable String status, @Nullable Integer done, @Nullable Integer total, @Nullable Integer totalDone) {}
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
@Override
|
|
18
|
+
public void onFailure(Exception cause) {}
|
|
22
19
|
}
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
for (UIViewController *viewController in bottomTabsController.deselectedViewControllers) {
|
|
10
10
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
11
11
|
UIWindow *preloadWindow = [[UIWindow alloc] initWithFrame:CGRectZero];
|
|
12
|
+
// Clip the preload window so the deselected tab's full-screen reactView,
|
|
13
|
+
// which is briefly hosted here while it renders, can't draw outside the
|
|
14
|
+
// zero-frame window and flicker over the already-visible selected tab.
|
|
15
|
+
preloadWindow.clipsToBounds = YES;
|
|
12
16
|
preloadWindow.hidden = NO;
|
|
13
17
|
|
|
14
18
|
dispatch_group_t ready = dispatch_group_create();
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
dispatch_group_t ready = dispatch_group_create();
|
|
8
8
|
|
|
9
9
|
UIWindow *preloadWindow = [[UIWindow alloc] initWithFrame:CGRectZero];
|
|
10
|
+
// Clip the preload window so the full-screen reactViews hosted here while
|
|
11
|
+
// they render can't draw outside the zero-frame window. Today the splash
|
|
12
|
+
// screen masks this, but without clipping it's a latent flicker.
|
|
13
|
+
preloadWindow.clipsToBounds = YES;
|
|
10
14
|
preloadWindow.hidden = NO;
|
|
11
15
|
|
|
12
16
|
NSMapTable *reactViewToParent = [NSMapTable strongToStrongObjectsMapTable];
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-navigation",
|
|
3
|
-
"version": "8.8.2-snapshot.
|
|
3
|
+
"version": "8.8.2-snapshot.2496",
|
|
4
4
|
"description": "React Native Navigation - truly native navigation for iOS and Android",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"nativePackage": true,
|
|
@@ -95,15 +95,16 @@
|
|
|
95
95
|
"@babel/runtime": "^7.25.0",
|
|
96
96
|
"@babel/types": "7.25.0",
|
|
97
97
|
"@d11/react-native-fast-image": "^8.13.0",
|
|
98
|
-
"@react-native-community/cli": "20.
|
|
99
|
-
"@react-native-community/cli-platform-android": "20.
|
|
100
|
-
"@react-native-community/cli-platform-ios": "20.
|
|
98
|
+
"@react-native-community/cli": "20.1.0",
|
|
99
|
+
"@react-native-community/cli-platform-android": "20.1.0",
|
|
100
|
+
"@react-native-community/cli-platform-ios": "20.1.0",
|
|
101
101
|
"@react-native-community/datetimepicker": "^8.2.0",
|
|
102
102
|
"@react-native-community/netinfo": "^11.4.1",
|
|
103
|
-
"@react-native/babel-preset": "0.
|
|
104
|
-
"@react-native/eslint-config": "0.
|
|
105
|
-
"@react-native/
|
|
106
|
-
"@react-native/
|
|
103
|
+
"@react-native/babel-preset": "0.85.2",
|
|
104
|
+
"@react-native/eslint-config": "0.85.2",
|
|
105
|
+
"@react-native/jest-preset": "0.85.2",
|
|
106
|
+
"@react-native/metro-config": "0.85.2",
|
|
107
|
+
"@react-native/typescript-config": "0.85.2",
|
|
107
108
|
"@testing-library/jest-native": "^5.4.2",
|
|
108
109
|
"@testing-library/react-native": "^13.0.1",
|
|
109
110
|
"@types/hoist-non-react-statics": "^3.3.6",
|
|
@@ -131,11 +132,11 @@
|
|
|
131
132
|
"pngjs": "^6.0.0",
|
|
132
133
|
"prettier": "2.8.8",
|
|
133
134
|
"react": "19.2.3",
|
|
134
|
-
"react-native": "0.
|
|
135
|
+
"react-native": "0.85.2",
|
|
135
136
|
"react-native-builder-bob": "^0.40.13",
|
|
136
137
|
"react-native-gesture-handler": "^2.29.1",
|
|
137
|
-
"react-native-reanimated": "4.
|
|
138
|
-
"react-native-worklets": "0.
|
|
138
|
+
"react-native-reanimated": "4.3.0",
|
|
139
|
+
"react-native-worklets": "0.8.1",
|
|
139
140
|
"react-redux": "9.1.2",
|
|
140
141
|
"react-test-renderer": "19.2.3",
|
|
141
142
|
"redux": "^5.0.1",
|