@umituz/react-native-design-system 4.28.0 → 4.28.1
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": "@umituz/react-native-design-system",
|
|
3
|
-
"version": "4.28.
|
|
3
|
+
"version": "4.28.1",
|
|
4
4
|
"description": "Universal design system for React Native apps with safe navigation hooks that work outside NavigationContainer",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -16,12 +16,9 @@ import { useMemo } from "react";
|
|
|
16
16
|
* }
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
export function useAppRoute
|
|
20
|
-
T extends ParamListBase = ParamListBase,
|
|
21
|
-
RouteName extends keyof T = keyof T
|
|
22
|
-
>(): RouteProp<T, RouteName> & { isReady: boolean } {
|
|
19
|
+
export function useAppRoute(): any {
|
|
23
20
|
try {
|
|
24
|
-
const route = useRoute
|
|
21
|
+
const route = useRoute();
|
|
25
22
|
return useMemo(
|
|
26
23
|
() => ({
|
|
27
24
|
...route,
|
|
@@ -37,11 +34,11 @@ export function useAppRoute<
|
|
|
37
34
|
return useMemo(
|
|
38
35
|
() => ({
|
|
39
36
|
key: '',
|
|
40
|
-
name: ''
|
|
37
|
+
name: '',
|
|
41
38
|
params: undefined,
|
|
42
39
|
path: undefined,
|
|
43
40
|
isReady: false,
|
|
44
|
-
}
|
|
41
|
+
}),
|
|
45
42
|
[]
|
|
46
43
|
);
|
|
47
44
|
}
|