@umituz/react-native-design-system 2.4.9 → 2.4.10

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": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive and safe area utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -53,9 +53,9 @@
53
53
  "@gorhom/bottom-sheet": ">=5.0.0",
54
54
  "@react-native-async-storage/async-storage": ">=2.0.0",
55
55
  "@react-native-community/datetimepicker": ">=8.0.0",
56
- "@react-navigation/bottom-tabs": ">=6.0.0",
57
- "@react-navigation/native": ">=6.0.0",
58
- "@react-navigation/stack": ">=6.0.0",
56
+ "@react-navigation/bottom-tabs": ">=7.0.0",
57
+ "@react-navigation/native": ">=7.0.0",
58
+ "@react-navigation/stack": ">=7.0.0",
59
59
  "@umituz/react-native-filesystem": "*",
60
60
  "@umituz/react-native-haptics": "*",
61
61
  "@umituz/react-native-localization": "*",
@@ -99,9 +99,9 @@
99
99
  "@gorhom/bottom-sheet": "^5.0.0",
100
100
  "@react-native-async-storage/async-storage": "^2.2.0",
101
101
  "@react-native-community/datetimepicker": "^8.5.1",
102
- "@react-navigation/bottom-tabs": "^6.6.1",
103
- "@react-navigation/native": "^6.0.0",
104
- "@react-navigation/stack": "^6.4.1",
102
+ "@react-navigation/bottom-tabs": "^7.9.0",
103
+ "@react-navigation/native": "^7.1.26",
104
+ "@react-navigation/stack": "^7.6.13",
105
105
  "@testing-library/react": "^16.3.1",
106
106
  "@testing-library/react-native": "^13.3.3",
107
107
  "@types/jest": "^30.0.0",
@@ -61,6 +61,7 @@ export function StackNavigator<T extends ParamListBase>({ config }: StackNavigat
61
61
 
62
62
  return (
63
63
  <Stack.Navigator
64
+ id={config.id}
64
65
  initialRouteName={config.initialRouteName as string}
65
66
  screenOptions={{
66
67
  ...defaultScreenOptions,
@@ -80,6 +80,7 @@ export function TabsNavigator<T extends ParamListBase>({
80
80
 
81
81
  return (
82
82
  <Tab.Navigator
83
+ id={config.id}
83
84
  initialRouteName={config.initialRouteName as string}
84
85
  screenOptions={{
85
86
  ...defaultScreenOptions,
@@ -66,6 +66,8 @@ export interface StackScreen<T extends ParamListBase = ParamListBase>
66
66
  }
67
67
 
68
68
  export interface BaseNavigatorConfig<T extends ParamListBase = ParamListBase> {
69
+ /** Unique identifier for the navigator (required for React Navigation v7+) */
70
+ id?: string;
69
71
  screens: TabScreen[] | StackScreen[];
70
72
  initialRouteName?: Extract<keyof T, string>;
71
73
  getLabel?: (label: string) => string;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * React 19 JSX Compatibility for React Native
3
+ * Fixes JSX namespace issues between React 19 and react-native
4
+ */
5
+
6
+ import type { JSX as ReactJSX } from 'react';
7
+
8
+ declare global {
9
+ namespace JSX {
10
+ interface Element extends ReactJSX.Element {}
11
+ interface ElementClass extends ReactJSX.ElementClass {}
12
+ interface ElementAttributesProperty extends ReactJSX.ElementAttributesProperty {}
13
+ interface ElementChildrenAttribute extends ReactJSX.ElementChildrenAttribute {}
14
+ interface IntrinsicAttributes extends ReactJSX.IntrinsicAttributes {}
15
+ interface IntrinsicClassAttributes<T> extends ReactJSX.IntrinsicClassAttributes<T> {}
16
+ }
17
+ }
18
+
19
+ export {};