@idealyst/navigation 1.2.75 → 1.2.77
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/navigation",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.77",
|
|
4
4
|
"description": "Cross-platform navigation library for React and React Native",
|
|
5
5
|
"readme": "README.md",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@idealyst/camera": "^1.2.30",
|
|
48
|
-
"@idealyst/components": "^1.2.
|
|
48
|
+
"@idealyst/components": "^1.2.77",
|
|
49
49
|
"@idealyst/microphone": "^1.2.30",
|
|
50
|
-
"@idealyst/theme": "^1.2.
|
|
50
|
+
"@idealyst/theme": "^1.2.77",
|
|
51
51
|
"@react-navigation/bottom-tabs": ">=7.0.0",
|
|
52
52
|
"@react-navigation/drawer": ">=7.0.0",
|
|
53
53
|
"@react-navigation/native": ">=7.0.0",
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"@idealyst/audio-playback": "^1.2.46",
|
|
76
76
|
"@idealyst/blur": "^1.2.40",
|
|
77
77
|
"@idealyst/camera": "^1.2.30",
|
|
78
|
-
"@idealyst/components": "^1.2.
|
|
78
|
+
"@idealyst/components": "^1.2.77",
|
|
79
79
|
"@idealyst/datagrid": "^1.2.30",
|
|
80
80
|
"@idealyst/datepicker": "^1.2.30",
|
|
81
81
|
"@idealyst/lottie": "^1.2.38",
|
|
82
|
-
"@idealyst/markdown": "^1.2.
|
|
82
|
+
"@idealyst/markdown": "^1.2.77",
|
|
83
83
|
"@idealyst/microphone": "^1.2.30",
|
|
84
|
-
"@idealyst/theme": "^1.2.
|
|
84
|
+
"@idealyst/theme": "^1.2.77",
|
|
85
85
|
"@types/react": "^19.1.8",
|
|
86
86
|
"@types/react-dom": "^19.1.6",
|
|
87
87
|
"react": "^19.1.0",
|
|
@@ -204,7 +204,7 @@ const parseParameterizedPath = (path: string, rootRoute: any): { routeName: stri
|
|
|
204
204
|
return null;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
const UnwrappedNavigatorProvider = ({ route }: NavigatorProviderProps) => {
|
|
207
|
+
const UnwrappedNavigatorProvider = ({ route, floatingComponent }: NavigatorProviderProps) => {
|
|
208
208
|
|
|
209
209
|
const navigation = useNavigation();
|
|
210
210
|
|
|
@@ -257,7 +257,7 @@ const UnwrappedNavigatorProvider = ({ route }: NavigatorProviderProps) => {
|
|
|
257
257
|
|
|
258
258
|
// Navigate to 404 screen if configured
|
|
259
259
|
if (route.notFoundComponent) {
|
|
260
|
-
navigation.navigate(NOT_FOUND_SCREEN_NAME as never, {
|
|
260
|
+
(navigation.navigate as any)(NOT_FOUND_SCREEN_NAME as never, {
|
|
261
261
|
path: normalizedPath,
|
|
262
262
|
} as never);
|
|
263
263
|
return;
|
|
@@ -281,7 +281,8 @@ const UnwrappedNavigatorProvider = ({ route }: NavigatorProviderProps) => {
|
|
|
281
281
|
);
|
|
282
282
|
} else {
|
|
283
283
|
// Navigate to the pattern route with extracted parameters
|
|
284
|
-
|
|
284
|
+
// TODO - investigate why we can't pass the second argument directly
|
|
285
|
+
(navigation.navigate as any)(parsed.routeName as never, navigationParams as never);
|
|
285
286
|
}
|
|
286
287
|
};
|
|
287
288
|
|
|
@@ -331,18 +332,19 @@ const UnwrappedNavigatorProvider = ({ route }: NavigatorProviderProps) => {
|
|
|
331
332
|
goBack,
|
|
332
333
|
}}>
|
|
333
334
|
<RouteComponent />
|
|
335
|
+
{floatingComponent}
|
|
334
336
|
</NavigatorContext.Provider>
|
|
335
337
|
)
|
|
336
338
|
};
|
|
337
339
|
|
|
338
|
-
const NavigatorProvider = ({ route }: NavigatorProviderProps) => {
|
|
340
|
+
const NavigatorProvider = ({ route, floatingComponent }: NavigatorProviderProps) => {
|
|
339
341
|
const {rt} = useUnistyles()
|
|
340
342
|
|
|
341
343
|
const isDarkMode = rt.themeName === 'dark';
|
|
342
344
|
|
|
343
345
|
return (
|
|
344
346
|
<NavigationContainer theme={isDarkMode ? DarkTheme : DefaultTheme}>
|
|
345
|
-
<UnwrappedNavigatorProvider route={route} />
|
|
347
|
+
<UnwrappedNavigatorProvider route={route} floatingComponent={floatingComponent} />
|
|
346
348
|
</NavigationContainer>
|
|
347
349
|
)
|
|
348
350
|
};
|