@react-navigation/stack 7.0.4 → 7.0.6
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/lib/commonjs/views/Stack/CardStack.js +2 -1
- package/lib/commonjs/views/Stack/CardStack.js.map +1 -1
- package/lib/module/views/Stack/CardStack.js +4 -3
- package/lib/module/views/Stack/CardStack.js.map +1 -1
- package/lib/typescript/commonjs/src/views/Stack/CardStack.d.ts.map +1 -1
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/module/src/views/Stack/CardStack.d.ts.map +1 -1
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/src/views/Stack/CardStack.tsx +3 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/stack",
|
|
3
3
|
"description": "Stack navigator component for iOS and Android with animated transitions and gestures",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.6",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -51,26 +51,26 @@
|
|
|
51
51
|
"clean": "del lib"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@react-navigation/elements": "^2.
|
|
54
|
+
"@react-navigation/elements": "^2.1.1",
|
|
55
55
|
"color": "^4.2.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@jest/globals": "^29.7.0",
|
|
59
|
-
"@react-navigation/native": "^7.0.
|
|
60
|
-
"@testing-library/react-native": "^12.
|
|
59
|
+
"@react-navigation/native": "^7.0.4",
|
|
60
|
+
"@testing-library/react-native": "^12.8.1",
|
|
61
61
|
"@types/color": "^3.0.6",
|
|
62
|
-
"@types/react": "~18.
|
|
62
|
+
"@types/react": "~18.3.12",
|
|
63
63
|
"del-cli": "^5.1.0",
|
|
64
|
-
"react": "18.
|
|
65
|
-
"react-native": "0.
|
|
64
|
+
"react": "18.3.1",
|
|
65
|
+
"react-native": "0.76.2",
|
|
66
66
|
"react-native-builder-bob": "^0.29.0",
|
|
67
|
-
"react-native-gesture-handler": "~2.
|
|
68
|
-
"react-native-safe-area-context": "4.
|
|
69
|
-
"react-native-screens": "
|
|
67
|
+
"react-native-gesture-handler": "~2.20.2",
|
|
68
|
+
"react-native-safe-area-context": "4.12.0",
|
|
69
|
+
"react-native-screens": "^4.3.0",
|
|
70
70
|
"typescript": "^5.5.2"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@react-navigation/native": "^7.0.
|
|
73
|
+
"@react-navigation/native": "^7.0.4",
|
|
74
74
|
"react": ">= 18.2.0",
|
|
75
75
|
"react-native": "*",
|
|
76
76
|
"react-native-gesture-handler": ">= 2.0.0",
|
|
@@ -102,5 +102,5 @@
|
|
|
102
102
|
]
|
|
103
103
|
]
|
|
104
104
|
},
|
|
105
|
-
"gitHead": "
|
|
105
|
+
"gitHead": "9ed7f88db02bf6b2565d575f79bd2feb0ceae1fa"
|
|
106
106
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Background,
|
|
3
2
|
getDefaultHeaderHeight,
|
|
4
3
|
SafeAreaProviderCompat,
|
|
5
4
|
} from '@react-navigation/elements';
|
|
@@ -15,6 +14,7 @@ import {
|
|
|
15
14
|
type LayoutChangeEvent,
|
|
16
15
|
Platform,
|
|
17
16
|
StyleSheet,
|
|
17
|
+
View,
|
|
18
18
|
} from 'react-native';
|
|
19
19
|
import type { EdgeInsets } from 'react-native-safe-area-context';
|
|
20
20
|
|
|
@@ -660,7 +660,7 @@ export class CardStack extends React.Component<Props, State> {
|
|
|
660
660
|
);
|
|
661
661
|
|
|
662
662
|
return (
|
|
663
|
-
<
|
|
663
|
+
<View style={styles.container}>
|
|
664
664
|
{isFloatHeaderAbsolute ? null : floatingHeader}
|
|
665
665
|
<MaybeScreenContainer
|
|
666
666
|
enabled={detachInactiveScreens}
|
|
@@ -795,7 +795,7 @@ export class CardStack extends React.Component<Props, State> {
|
|
|
795
795
|
})}
|
|
796
796
|
</MaybeScreenContainer>
|
|
797
797
|
{isFloatHeaderAbsolute ? floatingHeader : null}
|
|
798
|
-
</
|
|
798
|
+
</View>
|
|
799
799
|
);
|
|
800
800
|
}
|
|
801
801
|
}
|