@idealyst/navigation 1.0.80 → 1.0.81

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.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "Cross-platform navigation library for React and React Native",
5
5
  "readme": "README.md",
6
6
  "main": "src/index.ts",
@@ -38,8 +38,8 @@
38
38
  "publish:npm": "npm publish"
39
39
  },
40
40
  "peerDependencies": {
41
- "@idealyst/components": "^1.0.80",
42
- "@idealyst/theme": "^1.0.80",
41
+ "@idealyst/components": "^1.0.81",
42
+ "@idealyst/theme": "^1.0.81",
43
43
  "@react-navigation/bottom-tabs": "^7.0.0",
44
44
  "@react-navigation/drawer": "^7.0.0",
45
45
  "@react-navigation/native": "^7.0.0",
@@ -6,7 +6,6 @@ import { useUnistyles } from 'react-native-unistyles';
6
6
 
7
7
  const NavigatorContext = createContext<NavigatorContextValue>({
8
8
  navigate: () => {},
9
- params: {},
10
9
  });
11
10
 
12
11
  // Utility function to parse path with parameters and find matching route
@@ -70,7 +69,6 @@ const parseParameterizedPath = (path: string, routes: any[]): { routeName: strin
70
69
  const UnwrappedNavigatorProvider = ({ route }: NavigatorProviderProps) => {
71
70
 
72
71
  const navigation = useNavigation();
73
- const currentRoute = useRoute();
74
72
 
75
73
  const navigate = (params: NavigateParams) => {
76
74
 
@@ -94,7 +92,6 @@ const UnwrappedNavigatorProvider = ({ route }: NavigatorProviderProps) => {
94
92
  return (
95
93
  <NavigatorContext.Provider value={{
96
94
  navigate,
97
- params: currentRoute.params || {}
98
95
  }}>
99
96
  <RouteComponent />
100
97
  </NavigatorContext.Provider>
@@ -17,5 +17,4 @@ export type NavigatorProviderProps = {
17
17
  */
18
18
  export type NavigatorContextValue = {
19
19
  navigate: (params: NavigateParams) => void;
20
- params: Record<string, string>;
21
20
  };
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { View, Text } from '@idealyst/components'
3
3
  import { StackLayoutProps } from '../routing/types'
4
- import { Outlet } from 'react-router'
4
+ import { Outlet } from '..'
5
5
 
6
6
  export interface DefaultStackLayoutProps extends StackLayoutProps {
7
7
  onNavigate: (path: string) => void
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { View, Text, Button, Icon } from '@idealyst/components'
3
3
  import { TabLayoutProps } from '../routing/types'
4
- import { Outlet } from 'react-router'
4
+ import { Outlet } from '..'
5
5
 
6
6
  export interface DefaultTabLayoutProps extends TabLayoutProps {}
7
7