@react-navigation/native-stack 7.0.0-alpha.0 → 7.0.0-alpha.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/lib/commonjs/index.js +11 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/navigators/createNativeStackNavigator.js +27 -28
- package/lib/commonjs/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/useAnimatedHeaderHeight.js +19 -0
- package/lib/commonjs/utils/useAnimatedHeaderHeight.js.map +1 -0
- package/lib/commonjs/utils/useDismissedRouteError.js +5 -6
- package/lib/commonjs/utils/useDismissedRouteError.js.map +1 -1
- package/lib/commonjs/utils/useInvalidPreventRemoveError.js +5 -6
- package/lib/commonjs/utils/useInvalidPreventRemoveError.js.map +1 -1
- package/lib/commonjs/views/DebugContainer.js +4 -4
- package/lib/commonjs/views/DebugContainer.js.map +1 -1
- package/lib/commonjs/views/DebugContainer.native.js +22 -12
- package/lib/commonjs/views/DebugContainer.native.js.map +1 -1
- package/lib/commonjs/views/FontProcessor.js.map +1 -1
- package/lib/commonjs/views/FontProcessor.native.js +2 -4
- package/lib/commonjs/views/FontProcessor.native.js.map +1 -1
- package/lib/commonjs/views/HeaderConfig.js +36 -36
- package/lib/commonjs/views/HeaderConfig.js.map +1 -1
- package/lib/commonjs/views/NativeStackView.js +24 -12
- package/lib/commonjs/views/NativeStackView.js.map +1 -1
- package/lib/commonjs/views/NativeStackView.native.js +128 -50
- package/lib/commonjs/views/NativeStackView.native.js.map +1 -1
- package/lib/module/index.js +7 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigators/createNativeStackNavigator.js +23 -22
- package/lib/module/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/useAnimatedHeaderHeight.js +10 -0
- package/lib/module/utils/useAnimatedHeaderHeight.js.map +1 -0
- package/lib/module/utils/useDismissedRouteError.js +2 -3
- package/lib/module/utils/useDismissedRouteError.js.map +1 -1
- package/lib/module/utils/useInvalidPreventRemoveError.js +3 -4
- package/lib/module/utils/useInvalidPreventRemoveError.js.map +1 -1
- package/lib/module/views/DebugContainer.js +1 -1
- package/lib/module/views/DebugContainer.js.map +1 -1
- package/lib/module/views/DebugContainer.native.js +19 -7
- package/lib/module/views/DebugContainer.native.js.map +1 -1
- package/lib/module/views/FontProcessor.js.map +1 -1
- package/lib/module/views/FontProcessor.native.js +2 -4
- package/lib/module/views/FontProcessor.native.js.map +1 -1
- package/lib/module/views/HeaderConfig.js +36 -36
- package/lib/module/views/HeaderConfig.js.map +1 -1
- package/lib/module/views/NativeStackView.js +22 -10
- package/lib/module/views/NativeStackView.js.map +1 -1
- package/lib/module/views/NativeStackView.native.js +124 -46
- package/lib/module/views/NativeStackView.native.js.map +1 -1
- package/lib/typescript/src/index.d.ts +6 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/navigators/createNativeStackNavigator.d.ts +6 -6
- package/lib/typescript/src/navigators/createNativeStackNavigator.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +88 -10
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/useAnimatedHeaderHeight.d.ts +5 -0
- package/lib/typescript/src/utils/useAnimatedHeaderHeight.d.ts.map +1 -0
- package/lib/typescript/src/utils/useDismissedRouteError.d.ts +1 -1
- package/lib/typescript/src/utils/useDismissedRouteError.d.ts.map +1 -1
- package/lib/typescript/src/utils/useInvalidPreventRemoveError.d.ts +1 -1
- package/lib/typescript/src/utils/useInvalidPreventRemoveError.d.ts.map +1 -1
- package/lib/typescript/src/views/DebugContainer.d.ts +2 -2
- package/lib/typescript/src/views/DebugContainer.d.ts.map +1 -1
- package/lib/typescript/src/views/DebugContainer.native.d.ts +8 -3
- package/lib/typescript/src/views/DebugContainer.native.d.ts.map +1 -1
- package/lib/typescript/src/views/FontProcessor.native.d.ts.map +1 -1
- package/lib/typescript/src/views/HeaderConfig.d.ts +2 -3
- package/lib/typescript/src/views/HeaderConfig.d.ts.map +1 -1
- package/lib/typescript/src/views/NativeStackView.d.ts +3 -3
- package/lib/typescript/src/views/NativeStackView.d.ts.map +1 -1
- package/lib/typescript/src/views/NativeStackView.native.d.ts +3 -3
- package/lib/typescript/src/views/NativeStackView.native.d.ts.map +1 -1
- package/package.json +16 -17
- package/src/index.tsx +7 -2
- package/src/navigators/createNativeStackNavigator.tsx +11 -7
- package/src/types.tsx +88 -11
- package/src/utils/useAnimatedHeaderHeight.tsx +18 -0
- package/src/utils/useDismissedRouteError.tsx +1 -1
- package/src/utils/useInvalidPreventRemoveError.tsx +1 -1
- package/src/views/DebugContainer.native.tsx +13 -10
- package/src/views/DebugContainer.tsx +2 -2
- package/src/views/FontProcessor.native.tsx +1 -2
- package/src/views/HeaderConfig.tsx +142 -143
- package/src/views/NativeStackView.native.tsx +203 -97
- package/src/views/NativeStackView.tsx +41 -27
|
@@ -2,14 +2,15 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
2
2
|
import { getDefaultHeaderHeight, getHeaderTitle, HeaderBackContext, HeaderHeightContext, HeaderShownContext, SafeAreaProviderCompat } from '@react-navigation/elements';
|
|
3
3
|
import { NavigationContext, NavigationRouteContext, StackActions, usePreventRemoveContext, useTheme } from '@react-navigation/native';
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import { Platform, StyleSheet, View } from 'react-native';
|
|
5
|
+
import { Animated, Platform, StyleSheet, useAnimatedValue, View } from 'react-native';
|
|
6
6
|
import { useSafeAreaFrame, useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
7
7
|
import { Screen, ScreenStack } from 'react-native-screens';
|
|
8
8
|
import warnOnce from 'warn-once';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
9
|
+
import { AnimatedHeaderHeightContext } from '../utils/useAnimatedHeaderHeight';
|
|
10
|
+
import { useDismissedRouteError } from '../utils/useDismissedRouteError';
|
|
11
|
+
import { useInvalidPreventRemoveError } from '../utils/useInvalidPreventRemoveError';
|
|
12
|
+
import { DebugContainer } from './DebugContainer';
|
|
13
|
+
import { HeaderConfig } from './HeaderConfig';
|
|
13
14
|
const isAndroid = Platform.OS === 'android';
|
|
14
15
|
const MaybeNestedStack = _ref => {
|
|
15
16
|
let {
|
|
@@ -45,18 +46,19 @@ const MaybeNestedStack = _ref => {
|
|
|
45
46
|
style: styles.container
|
|
46
47
|
}, /*#__PURE__*/React.createElement(Screen, {
|
|
47
48
|
enabled: true,
|
|
49
|
+
isNativeStack: true,
|
|
50
|
+
hasLargeHeader: options.headerLargeTitle ?? false,
|
|
48
51
|
style: StyleSheet.absoluteFill
|
|
49
|
-
}, /*#__PURE__*/React.createElement(HeaderConfig, _extends({}, options, {
|
|
52
|
+
}, content, /*#__PURE__*/React.createElement(HeaderConfig, _extends({}, options, {
|
|
50
53
|
route: route,
|
|
51
54
|
headerHeight: headerHeight,
|
|
52
55
|
headerTopInsetEnabled: headerTopInsetEnabled,
|
|
53
56
|
canGoBack: true
|
|
54
|
-
}))
|
|
57
|
+
}))));
|
|
55
58
|
}
|
|
56
59
|
return content;
|
|
57
60
|
};
|
|
58
61
|
const SceneView = _ref2 => {
|
|
59
|
-
var _preventedRoutes$rout;
|
|
60
62
|
let {
|
|
61
63
|
index,
|
|
62
64
|
focused,
|
|
@@ -64,11 +66,13 @@ const SceneView = _ref2 => {
|
|
|
64
66
|
previousDescriptor,
|
|
65
67
|
nextDescriptor,
|
|
66
68
|
onWillDisappear,
|
|
69
|
+
onWillAppear,
|
|
67
70
|
onAppear,
|
|
68
71
|
onDisappear,
|
|
69
72
|
onDismissed,
|
|
70
73
|
onHeaderBackButtonClicked,
|
|
71
|
-
onNativeDismissCancelled
|
|
74
|
+
onNativeDismissCancelled,
|
|
75
|
+
onGestureCancel
|
|
72
76
|
} = _ref2;
|
|
73
77
|
const {
|
|
74
78
|
route,
|
|
@@ -76,43 +80,51 @@ const SceneView = _ref2 => {
|
|
|
76
80
|
options,
|
|
77
81
|
render
|
|
78
82
|
} = descriptor;
|
|
83
|
+
let {
|
|
84
|
+
animation,
|
|
85
|
+
animationMatchesGesture,
|
|
86
|
+
fullScreenGestureEnabled,
|
|
87
|
+
presentation = 'card'
|
|
88
|
+
} = options;
|
|
79
89
|
const {
|
|
80
90
|
animationDuration,
|
|
81
91
|
animationTypeForReplace = 'push',
|
|
82
92
|
gestureEnabled,
|
|
93
|
+
gestureDirection = presentation === 'card' ? 'horizontal' : 'vertical',
|
|
94
|
+
gestureResponseDistance,
|
|
83
95
|
header,
|
|
84
96
|
headerBackButtonMenuEnabled,
|
|
85
97
|
headerShown,
|
|
98
|
+
headerBackground,
|
|
86
99
|
headerTransparent,
|
|
87
100
|
autoHideHomeIndicator,
|
|
101
|
+
keyboardHandlingEnabled,
|
|
88
102
|
navigationBarColor,
|
|
89
103
|
navigationBarHidden,
|
|
90
104
|
orientation,
|
|
105
|
+
sheetAllowedDetents = 'large',
|
|
106
|
+
sheetLargestUndimmedDetent = 'all',
|
|
107
|
+
sheetGrabberVisible = false,
|
|
108
|
+
sheetCornerRadius = -1.0,
|
|
109
|
+
sheetExpandsWhenScrolledToEdge = true,
|
|
91
110
|
statusBarAnimation,
|
|
92
111
|
statusBarHidden,
|
|
93
112
|
statusBarStyle,
|
|
94
113
|
statusBarTranslucent,
|
|
95
|
-
|
|
114
|
+
statusBarBackgroundColor,
|
|
96
115
|
freezeOnBlur
|
|
97
116
|
} = options;
|
|
98
|
-
let {
|
|
99
|
-
animation,
|
|
100
|
-
customAnimationOnGesture,
|
|
101
|
-
fullScreenGestureEnabled,
|
|
102
|
-
presentation = 'card',
|
|
103
|
-
gestureDirection = presentation === 'card' ? 'horizontal' : 'vertical'
|
|
104
|
-
} = options;
|
|
105
117
|
if (gestureDirection === 'vertical' && Platform.OS === 'ios') {
|
|
106
118
|
// for `vertical` direction to work, we need to set `fullScreenGestureEnabled` to `true`
|
|
107
119
|
// so the screen can be dismissed from any point on screen.
|
|
108
|
-
// `
|
|
120
|
+
// `animationMatchesGesture` needs to be set to `true` so the `animation` set by user can be used,
|
|
109
121
|
// otherwise `simple_push` will be used.
|
|
110
122
|
// Also, the default animation for this direction seems to be `slide_from_bottom`.
|
|
111
123
|
if (fullScreenGestureEnabled === undefined) {
|
|
112
124
|
fullScreenGestureEnabled = true;
|
|
113
125
|
}
|
|
114
|
-
if (
|
|
115
|
-
|
|
126
|
+
if (animationMatchesGesture === undefined) {
|
|
127
|
+
animationMatchesGesture = true;
|
|
116
128
|
}
|
|
117
129
|
if (animation === undefined) {
|
|
118
130
|
animation = 'slide_from_bottom';
|
|
@@ -121,7 +133,7 @@ const SceneView = _ref2 => {
|
|
|
121
133
|
|
|
122
134
|
// workaround for rn-screens where gestureDirection has to be set on both
|
|
123
135
|
// current and previous screen - software-mansion/react-native-screens/pull/1509
|
|
124
|
-
const nextGestureDirection = nextDescriptor
|
|
136
|
+
const nextGestureDirection = nextDescriptor?.options.gestureDirection;
|
|
125
137
|
const gestureDirectionOverride = nextGestureDirection != null ? nextGestureDirection : gestureDirection;
|
|
126
138
|
if (index === 0) {
|
|
127
139
|
// first screen should always be treated as `card`, it resolves problems with no header animation
|
|
@@ -146,49 +158,73 @@ const SceneView = _ref2 => {
|
|
|
146
158
|
} = usePreventRemoveContext();
|
|
147
159
|
const defaultHeaderHeight = getDefaultHeaderHeight(frame, isModal, topInset);
|
|
148
160
|
const [customHeaderHeight, setCustomHeaderHeight] = React.useState(defaultHeaderHeight);
|
|
161
|
+
const animatedHeaderHeight = useAnimatedValue(defaultHeaderHeight);
|
|
149
162
|
const headerTopInsetEnabled = topInset !== 0;
|
|
150
163
|
const headerHeight = header ? customHeaderHeight : defaultHeaderHeight;
|
|
151
|
-
const
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
164
|
+
const backTitle = previousDescriptor ? getHeaderTitle(previousDescriptor.options, previousDescriptor.route.name) : parentHeaderBack?.title;
|
|
165
|
+
const headerBack = React.useMemo(() => ({
|
|
166
|
+
// No href needed for native
|
|
167
|
+
href: undefined,
|
|
168
|
+
title: backTitle
|
|
169
|
+
}), [backTitle]);
|
|
170
|
+
const isRemovePrevented = preventedRoutes[route.key]?.preventRemove;
|
|
155
171
|
return /*#__PURE__*/React.createElement(Screen, {
|
|
156
172
|
key: route.key,
|
|
157
173
|
enabled: true,
|
|
174
|
+
isNativeStack: true,
|
|
158
175
|
style: StyleSheet.absoluteFill,
|
|
159
|
-
|
|
176
|
+
hasLargeHeader: options.headerLargeTitle ?? false,
|
|
177
|
+
customAnimationOnSwipe: animationMatchesGesture,
|
|
160
178
|
fullScreenSwipeEnabled: fullScreenGestureEnabled,
|
|
161
179
|
gestureEnabled: isAndroid ?
|
|
162
180
|
// This prop enables handling of system back gestures on Android
|
|
163
181
|
// Since we handle them in JS side, we disable this
|
|
164
182
|
false : gestureEnabled,
|
|
165
183
|
homeIndicatorHidden: autoHideHomeIndicator,
|
|
184
|
+
hideKeyboardOnSwipe: keyboardHandlingEnabled,
|
|
166
185
|
navigationBarColor: navigationBarColor,
|
|
167
186
|
navigationBarHidden: navigationBarHidden,
|
|
168
187
|
replaceAnimation: animationTypeForReplace,
|
|
169
188
|
stackPresentation: presentation === 'card' ? 'push' : presentation,
|
|
170
189
|
stackAnimation: animation,
|
|
171
190
|
screenOrientation: orientation,
|
|
191
|
+
sheetAllowedDetents: sheetAllowedDetents,
|
|
192
|
+
sheetLargestUndimmedDetent: sheetLargestUndimmedDetent,
|
|
193
|
+
sheetGrabberVisible: sheetGrabberVisible,
|
|
194
|
+
sheetCornerRadius: sheetCornerRadius,
|
|
195
|
+
sheetExpandsWhenScrolledToEdge: sheetExpandsWhenScrolledToEdge,
|
|
172
196
|
statusBarAnimation: statusBarAnimation,
|
|
173
197
|
statusBarHidden: statusBarHidden,
|
|
174
198
|
statusBarStyle: statusBarStyle,
|
|
175
|
-
statusBarColor:
|
|
199
|
+
statusBarColor: statusBarBackgroundColor,
|
|
176
200
|
statusBarTranslucent: statusBarTranslucent,
|
|
177
201
|
swipeDirection: gestureDirectionOverride,
|
|
178
202
|
transitionDuration: animationDuration,
|
|
203
|
+
onWillAppear: onWillAppear,
|
|
179
204
|
onWillDisappear: onWillDisappear,
|
|
180
205
|
onAppear: onAppear,
|
|
181
206
|
onDisappear: onDisappear,
|
|
182
207
|
onDismissed: onDismissed,
|
|
183
|
-
|
|
208
|
+
onGestureCancel: onGestureCancel,
|
|
209
|
+
gestureResponseDistance: gestureResponseDistance,
|
|
184
210
|
nativeBackButtonDismissalEnabled: false // on Android
|
|
185
211
|
,
|
|
186
|
-
onHeaderBackButtonClicked: onHeaderBackButtonClicked
|
|
187
|
-
// @ts-ignore props not exported from rn-screens
|
|
188
|
-
,
|
|
212
|
+
onHeaderBackButtonClicked: onHeaderBackButtonClicked,
|
|
189
213
|
preventNativeDismiss: isRemovePrevented // on iOS
|
|
190
214
|
,
|
|
191
215
|
onNativeDismissCancelled: onNativeDismissCancelled
|
|
216
|
+
// Unfortunately, because of the bug that exists on Fabric, where native event drivers
|
|
217
|
+
// for Animated objects are being created after the first notifications about the header height
|
|
218
|
+
// from the native side, `onHeaderHeightChange` event does not notify
|
|
219
|
+
// `animatedHeaderHeight` about initial values on appearing screens at the moment.
|
|
220
|
+
,
|
|
221
|
+
onHeaderHeightChange: Animated.event([{
|
|
222
|
+
nativeEvent: {
|
|
223
|
+
headerHeight: animatedHeaderHeight
|
|
224
|
+
}
|
|
225
|
+
}], {
|
|
226
|
+
useNativeDriver: true
|
|
227
|
+
})
|
|
192
228
|
// this prop is available since rn-screens 3.16
|
|
193
229
|
,
|
|
194
230
|
freezeOnBlur: freezeOnBlur
|
|
@@ -198,17 +234,21 @@ const SceneView = _ref2 => {
|
|
|
198
234
|
value: route
|
|
199
235
|
}, /*#__PURE__*/React.createElement(HeaderShownContext.Provider, {
|
|
200
236
|
value: isParentHeaderShown || headerShown !== false
|
|
237
|
+
}, /*#__PURE__*/React.createElement(AnimatedHeaderHeightContext.Provider, {
|
|
238
|
+
value: animatedHeaderHeight
|
|
201
239
|
}, /*#__PURE__*/React.createElement(HeaderHeightContext.Provider, {
|
|
202
240
|
value: headerShown !== false ? headerHeight : parentHeaderHeight ?? 0
|
|
203
|
-
},
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
241
|
+
}, headerBackground != null ?
|
|
242
|
+
/*#__PURE__*/
|
|
243
|
+
/**
|
|
244
|
+
* To show a custom header background, we render it at the top of the screen below the header
|
|
245
|
+
* The header also needs to be positioned absolutely (with `translucent` style)
|
|
246
|
+
*/
|
|
247
|
+
React.createElement(View, {
|
|
248
|
+
style: [styles.background, headerTransparent ? styles.translucent : null, {
|
|
249
|
+
height: headerHeight
|
|
250
|
+
}]
|
|
251
|
+
}, headerBackground()) : null, /*#__PURE__*/React.createElement(View, {
|
|
212
252
|
accessibilityElementsHidden: !focused,
|
|
213
253
|
importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',
|
|
214
254
|
style: styles.scene
|
|
@@ -230,7 +270,15 @@ const SceneView = _ref2 => {
|
|
|
230
270
|
options,
|
|
231
271
|
route,
|
|
232
272
|
navigation
|
|
233
|
-
})) : null)
|
|
273
|
+
})) : null), /*#__PURE__*/React.createElement(HeaderConfig, _extends({}, options, {
|
|
274
|
+
route: route,
|
|
275
|
+
headerBackButtonMenuEnabled: isRemovePrevented !== undefined ? !isRemovePrevented : headerBackButtonMenuEnabled,
|
|
276
|
+
headerShown: header !== undefined ? false : headerShown,
|
|
277
|
+
headerHeight: headerHeight,
|
|
278
|
+
headerBackTitle: options.headerBackTitle !== undefined ? options.headerBackTitle : undefined,
|
|
279
|
+
headerTopInsetEnabled: headerTopInsetEnabled,
|
|
280
|
+
canGoBack: headerBack !== undefined
|
|
281
|
+
}))))))));
|
|
234
282
|
};
|
|
235
283
|
function NativeStackViewInner(_ref3) {
|
|
236
284
|
let {
|
|
@@ -241,15 +289,19 @@ function NativeStackViewInner(_ref3) {
|
|
|
241
289
|
const {
|
|
242
290
|
setNextDismissedKey
|
|
243
291
|
} = useDismissedRouteError(state);
|
|
292
|
+
const {
|
|
293
|
+
colors
|
|
294
|
+
} = useTheme();
|
|
244
295
|
useInvalidPreventRemoveError(descriptors);
|
|
245
296
|
return /*#__PURE__*/React.createElement(ScreenStack, {
|
|
246
|
-
style: styles.container
|
|
297
|
+
style: [styles.container, {
|
|
298
|
+
backgroundColor: colors.background
|
|
299
|
+
}]
|
|
247
300
|
}, state.routes.map((route, index) => {
|
|
248
|
-
var _state$routes, _state$routes2;
|
|
249
301
|
const descriptor = descriptors[route.key];
|
|
250
302
|
const isFocused = state.index === index;
|
|
251
|
-
const previousKey =
|
|
252
|
-
const nextKey =
|
|
303
|
+
const previousKey = state.routes[index - 1]?.key;
|
|
304
|
+
const nextKey = state.routes[index + 1]?.key;
|
|
253
305
|
const previousDescriptor = previousKey ? descriptors[previousKey] : undefined;
|
|
254
306
|
const nextDescriptor = nextKey ? descriptors[nextKey] : undefined;
|
|
255
307
|
return /*#__PURE__*/React.createElement(SceneView, {
|
|
@@ -268,6 +320,15 @@ function NativeStackViewInner(_ref3) {
|
|
|
268
320
|
target: route.key
|
|
269
321
|
});
|
|
270
322
|
},
|
|
323
|
+
onWillAppear: () => {
|
|
324
|
+
navigation.emit({
|
|
325
|
+
type: 'transitionStart',
|
|
326
|
+
data: {
|
|
327
|
+
closing: false
|
|
328
|
+
},
|
|
329
|
+
target: route.key
|
|
330
|
+
});
|
|
331
|
+
},
|
|
271
332
|
onAppear: () => {
|
|
272
333
|
navigation.emit({
|
|
273
334
|
type: 'transitionEnd',
|
|
@@ -307,11 +368,17 @@ function NativeStackViewInner(_ref3) {
|
|
|
307
368
|
source: route.key,
|
|
308
369
|
target: state.key
|
|
309
370
|
});
|
|
371
|
+
},
|
|
372
|
+
onGestureCancel: () => {
|
|
373
|
+
navigation.emit({
|
|
374
|
+
type: 'gestureCancel',
|
|
375
|
+
target: route.key
|
|
376
|
+
});
|
|
310
377
|
}
|
|
311
378
|
});
|
|
312
379
|
}));
|
|
313
380
|
}
|
|
314
|
-
export
|
|
381
|
+
export function NativeStackView(props) {
|
|
315
382
|
return /*#__PURE__*/React.createElement(SafeAreaProviderCompat, null, /*#__PURE__*/React.createElement(NativeStackViewInner, props));
|
|
316
383
|
}
|
|
317
384
|
const styles = StyleSheet.create({
|
|
@@ -327,6 +394,17 @@ const styles = StyleSheet.create({
|
|
|
327
394
|
top: 0,
|
|
328
395
|
left: 0,
|
|
329
396
|
right: 0
|
|
397
|
+
},
|
|
398
|
+
translucent: {
|
|
399
|
+
position: 'absolute',
|
|
400
|
+
top: 0,
|
|
401
|
+
left: 0,
|
|
402
|
+
right: 0,
|
|
403
|
+
zIndex: 1,
|
|
404
|
+
elevation: 1
|
|
405
|
+
},
|
|
406
|
+
background: {
|
|
407
|
+
overflow: 'hidden'
|
|
330
408
|
}
|
|
331
409
|
});
|
|
332
410
|
//# sourceMappingURL=NativeStackView.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getDefaultHeaderHeight","getHeaderTitle","HeaderBackContext","HeaderHeightContext","HeaderShownContext","SafeAreaProviderCompat","NavigationContext","NavigationRouteContext","StackActions","usePreventRemoveContext","useTheme","React","Platform","StyleSheet","View","useSafeAreaFrame","useSafeAreaInsets","Screen","ScreenStack","warnOnce","useDismissedRouteError","useInvalidPreventRemoveError","DebugContainer","HeaderConfig","isAndroid","OS","MaybeNestedStack","options","route","presentation","headerHeight","headerTopInsetEnabled","children","colors","header","headerShown","contentStyle","isHeaderInModal","undefined","headerShownPreviousRef","useRef","useEffect","current","name","content","styles","container","backgroundColor","background","absoluteFill","SceneView","index","focused","descriptor","previousDescriptor","nextDescriptor","onWillDisappear","onAppear","onDisappear","onDismissed","onHeaderBackButtonClicked","onNativeDismissCancelled","navigation","render","animationDuration","animationTypeForReplace","gestureEnabled","headerBackButtonMenuEnabled","headerTransparent","autoHideHomeIndicator","navigationBarColor","navigationBarHidden","orientation","statusBarAnimation","statusBarHidden","statusBarStyle","statusBarTranslucent","statusBarColor","freezeOnBlur","animation","customAnimationOnGesture","fullScreenGestureEnabled","gestureDirection","nextGestureDirection","gestureDirectionOverride","insets","frame","isModal","isIPhone","isPad","isTV","isLandscape","width","height","isParentHeaderShown","useContext","parentHeaderHeight","parentHeaderBack","topInset","top","preventedRoutes","defaultHeaderHeight","customHeaderHeight","setCustomHeaderHeight","useState","headerBack","title","isRemovePrevented","key","preventRemove","headerBackTitle","scene","e","nativeEvent","layout","absolute","back","NativeStackViewInner","state","descriptors","setNextDismissedKey","routes","map","isFocused","previousKey","nextKey","emit","type","data","closing","target","event","dispatch","pop","dismissCount","source","NativeStackView","props","create","flex","flexDirection","position","left","right"],"sourceRoot":"../../src","sources":["NativeStackView.native.tsx"],"mappings":";AAAA,SACEA,sBAAsB,EACtBC,cAAc,EACdC,iBAAiB,EACjBC,mBAAmB,EACnBC,kBAAkB,EAClBC,sBAAsB,QACjB,4BAA4B;AACnC,SACEC,iBAAiB,EACjBC,sBAAsB,EAGtBC,YAAY,EAEZC,uBAAuB,EACvBC,QAAQ,QACH,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACzD,SACEC,gBAAgB,EAChBC,iBAAiB,QACZ,gCAAgC;AAEvC,SACEC,MAAM,EACNC,WAAW,QAEN,sBAAsB;AAC7B,OAAOC,QAAQ,MAAM,WAAW;AAQhC,OAAOC,sBAAsB,MAAM,iCAAiC;AACpE,OAAOC,4BAA4B,MAAM,uCAAuC;AAChF,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,YAAY,MAAM,gBAAgB;AAEzC,MAAMC,SAAS,GAAGZ,QAAQ,CAACa,EAAE,KAAK,SAAS;AAE3C,MAAMC,gBAAgB,GAAG,QAcnB;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AG5H,YAAY,CAAC6H,GAAG,EAAE;UACrBE,MAAM,EAAE3G,KAAK,CAACgF,GAAG;UACjBsB,MAAM,EAAEZ,KAAK,CAACV;QAChB,CAAC,CAAC;MACJ,CAAE;MACF,wBAAwB,EAAGuB,KAAK,IAAK;QACnCrE,UAAU,CAACsE,QAAQ,CAAC;UAClB,GAAG5H,YAAY,CAAC6H,GAAG,CAACF,KAAK,CAAClB,WAAW,CAACqB,YAAY,CAAC;UACnDC,MAAM,EAAE3G,KAAK,CAACgF,GAAG;UACjBsB,MAAM,EAAEZ,KAAK,CAACV;QAChB,CAAC,CAAC;MACJ;IAAE,EACF;EAEN,CAAC,CAAC,CACU;AAElB;AAEA,eAAe,SAAS4B,eAAe,CAACC,KAAY,EAAE;EACpD,oBACE,oBAAC,sBAAsB,qBACrB,oBAAC,oBAAoB,EAAKA,KAAK,CAAI,CACZ;AAE7B;AAEA,MAAM5F,MAAM,GAAGhC,UAAU,CAAC6H,MAAM,CAAC;EAC/B5F,SAAS,EAAE;IACT6F,IAAI,EAAE;EACR,CAAC;EACD5B,KAAK,EAAE;IACL4B,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE;EACjB,CAAC;EACDzB,QAAQ,EAAE;IACR0B,QAAQ,EAAE,UAAU;IACpB1C,GAAG,EAAE,CAAC;IACN2C,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE;EACT;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["getDefaultHeaderHeight","getHeaderTitle","HeaderBackContext","HeaderHeightContext","HeaderShownContext","SafeAreaProviderCompat","NavigationContext","NavigationRouteContext","StackActions","usePreventRemoveContext","useTheme","React","Animated","Platform","StyleSheet","useAnimatedValue","View","useSafeAreaFrame","useSafeAreaInsets","Screen","ScreenStack","warnOnce","AnimatedHeaderHeightContext","useDismissedRouteError","useInvalidPreventRemoveError","DebugContainer","HeaderConfig","isAndroid","OS","MaybeNestedStack","_ref","options","route","presentation","headerHeight","headerTopInsetEnabled","children","colors","header","headerShown","contentStyle","isHeaderInModal","undefined","headerShownPreviousRef","useRef","useEffect","current","name","content","createElement","style","styles","container","backgroundColor","background","stackPresentation","enabled","isNativeStack","hasLargeHeader","headerLargeTitle","absoluteFill","_extends","canGoBack","SceneView","_ref2","index","focused","descriptor","previousDescriptor","nextDescriptor","onWillDisappear","onWillAppear","onAppear","onDisappear","onDismissed","onHeaderBackButtonClicked","onNativeDismissCancelled","onGestureCancel","navigation","render","animation","animationMatchesGesture","fullScreenGestureEnabled","animationDuration","animationTypeForReplace","gestureEnabled","gestureDirection","gestureResponseDistance","headerBackButtonMenuEnabled","headerBackground","headerTransparent","autoHideHomeIndicator","keyboardHandlingEnabled","navigationBarColor","navigationBarHidden","orientation","sheetAllowedDetents","sheetLargestUndimmedDetent","sheetGrabberVisible","sheetCornerRadius","sheetExpandsWhenScrolledToEdge","statusBarAnimation","statusBarHidden","statusBarStyle","statusBarTranslucent","statusBarBackgroundColor","freezeOnBlur","nextGestureDirection","gestureDirectionOverride","insets","frame","isModal","isIPhone","isPad","isTV","isLandscape","width","height","isParentHeaderShown","useContext","parentHeaderHeight","parentHeaderBack","topInset","top","preventedRoutes","defaultHeaderHeight","customHeaderHeight","setCustomHeaderHeight","useState","animatedHeaderHeight","backTitle","title","headerBack","useMemo","href","isRemovePrevented","key","preventRemove","customAnimationOnSwipe","fullScreenSwipeEnabled","homeIndicatorHidden","hideKeyboardOnSwipe","replaceAnimation","stackAnimation","screenOrientation","statusBarColor","swipeDirection","transitionDuration","nativeBackButtonDismissalEnabled","preventNativeDismiss","onHeaderHeightChange","event","nativeEvent","useNativeDriver","Provider","value","translucent","accessibilityElementsHidden","importantForAccessibility","scene","onLayout","e","layout","absolute","back","headerBackTitle","NativeStackViewInner","_ref3","state","descriptors","setNextDismissedKey","routes","map","isFocused","previousKey","nextKey","emit","type","data","closing","target","dispatch","pop","dismissCount","source","NativeStackView","props","create","flex","flexDirection","position","left","right","zIndex","elevation","overflow"],"sourceRoot":"../../../src","sources":["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EAEN,CAAC,CACU,CAAC;AAElB;AAEA,OAAO,SAASiD,eAAeA,CAACC,KAAY,EAAE;EAC5C,oBACE/K,KAAA,CAAAsC,aAAA,CAAC5C,sBAAsB,qBACrBM,KAAA,CAAAsC,aAAA,CAACqH,oBAAoB,EAAKoB,KAAQ,CACZ,CAAC;AAE7B;AAEA,MAAMvI,MAAM,GAAGrC,UAAU,CAAC6K,MAAM,CAAC;EAC/BvI,SAAS,EAAE;IACTwI,IAAI,EAAE;EACR,CAAC;EACD7B,KAAK,EAAE;IACL6B,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE;EACjB,CAAC;EACD1B,QAAQ,EAAE;IACR2B,QAAQ,EAAE,UAAU;IACpBnE,GAAG,EAAE,CAAC;IACNoE,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE;EACT,CAAC;EACDpC,WAAW,EAAE;IACXkC,QAAQ,EAAE,UAAU;IACpBnE,GAAG,EAAE,CAAC;IACNoE,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE;EACb,CAAC;EACD5I,UAAU,EAAE;IACV6I,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Navigators
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { createNativeStackNavigator } from './navigators/createNativeStackNavigator';
|
|
5
5
|
/**
|
|
6
6
|
* Views
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
8
|
+
export { NativeStackView } from './views/NativeStackView';
|
|
9
|
+
/**
|
|
10
|
+
* Hooks
|
|
11
|
+
*/
|
|
12
|
+
export { useAnimatedHeaderHeight } from './utils/useAnimatedHeaderHeight';
|
|
9
13
|
/**
|
|
10
14
|
* Types
|
|
11
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;GAEG;AACH,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E;;GAEG;AACH,YAAY,EACV,sBAAsB,EACtB,6BAA6B,EAC7B,4BAA4B,EAC5B,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,SAAS,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { type ParamListBase, type StackNavigationState } from '@react-navigation/native';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import type { NativeStackNavigationEventMap, NativeStackNavigationOptions, NativeStackNavigatorProps } from '../types';
|
|
4
|
-
declare function NativeStackNavigator({ id, initialRouteName, children, screenListeners, screenOptions, ...rest }: NativeStackNavigatorProps): JSX.Element;
|
|
5
|
-
declare const
|
|
4
|
+
declare function NativeStackNavigator({ id, initialRouteName, children, layout, screenListeners, screenOptions, screenLayout, ...rest }: NativeStackNavigatorProps): React.JSX.Element;
|
|
5
|
+
export declare const createNativeStackNavigator: {
|
|
6
6
|
<ParamList extends ParamListBase>(): import("@react-navigation/native").TypedNavigator<ParamList, StackNavigationState<ParamListBase>, NativeStackNavigationOptions, NativeStackNavigationEventMap, typeof NativeStackNavigator>;
|
|
7
|
-
<ParamList_1 extends ParamListBase, Config extends import("
|
|
7
|
+
<ParamList_1 extends ParamListBase, Config extends import("@react-navigation/core/lib/typescript/src/StaticNavigation").StaticConfig<ParamList_1, StackNavigationState<ParamListBase>, NativeStackNavigationOptions, NativeStackNavigationEventMap, typeof NativeStackNavigator>>(config: Config): import("@react-navigation/native").TypedNavigator<ParamList_1, StackNavigationState<ParamListBase>, NativeStackNavigationOptions, NativeStackNavigationEventMap, typeof NativeStackNavigator> & {
|
|
8
8
|
config: Config;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export {};
|
|
12
12
|
//# sourceMappingURL=createNativeStackNavigator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createNativeStackNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createNativeStackNavigator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createNativeStackNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createNativeStackNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,aAAa,EAGlB,KAAK,oBAAoB,EAI1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,6BAA6B,EAC7B,4BAA4B,EAC5B,yBAAyB,EAC1B,MAAM,UAAU,CAAC;AAGlB,iBAAS,oBAAoB,CAAC,EAC5B,EAAE,EACF,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,yBAAyB,qBAsD3B;AAED,eAAO,MAAM,0BAA0B;;;;;CAKhB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { DefaultNavigatorOptions, Descriptor, NavigationHelpers, NavigationProp, ParamListBase, Route, RouteProp, StackActionHelpers, StackNavigationState, StackRouterOptions } from '@react-navigation/native';
|
|
3
3
|
import type { ImageSourcePropType, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
4
|
-
import type { ScreenProps, ScreenStackHeaderConfigProps, SearchBarProps } from 'react-native-screens';
|
|
4
|
+
import type { ScreenProps, ScreenStackHeaderConfigProps, SearchBarProps, SheetDetentTypes } from 'react-native-screens';
|
|
5
5
|
export type NativeStackNavigationEventMap = {
|
|
6
6
|
/**
|
|
7
7
|
* Event which fires when a transition animation starts.
|
|
@@ -19,6 +19,12 @@ export type NativeStackNavigationEventMap = {
|
|
|
19
19
|
closing: boolean;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Event which fires when a swipe back is canceled on iOS.
|
|
24
|
+
*/
|
|
25
|
+
gestureCancel: {
|
|
26
|
+
data: undefined;
|
|
27
|
+
};
|
|
22
28
|
};
|
|
23
29
|
export type NativeStackNavigationProp<ParamList extends ParamListBase, RouteName extends keyof ParamList = string, NavigatorID extends string | undefined = undefined> = NavigationProp<ParamList, RouteName, NavigatorID, StackNavigationState<ParamList>, NativeStackNavigationOptions, NativeStackNavigationEventMap> & StackActionHelpers<ParamList>;
|
|
24
30
|
export type NativeStackScreenProps<ParamList extends ParamListBase, RouteName extends keyof ParamList = string, NavigatorID extends string | undefined = undefined> = {
|
|
@@ -35,7 +41,11 @@ export type NativeStackHeaderProps = {
|
|
|
35
41
|
/**
|
|
36
42
|
* Title of the previous screen.
|
|
37
43
|
*/
|
|
38
|
-
title: string;
|
|
44
|
+
title: string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The `href` to use for the anchor tag on web
|
|
47
|
+
*/
|
|
48
|
+
href: string | undefined;
|
|
39
49
|
};
|
|
40
50
|
/**
|
|
41
51
|
* Options for the current screen.
|
|
@@ -50,7 +60,7 @@ export type NativeStackHeaderProps = {
|
|
|
50
60
|
*/
|
|
51
61
|
navigation: NativeStackNavigationProp<ParamListBase>;
|
|
52
62
|
};
|
|
53
|
-
export type
|
|
63
|
+
export type NativeStackHeaderRightProps = {
|
|
54
64
|
/**
|
|
55
65
|
* Tint color for the header.
|
|
56
66
|
*/
|
|
@@ -60,7 +70,7 @@ export type HeaderButtonProps = {
|
|
|
60
70
|
*/
|
|
61
71
|
canGoBack: boolean;
|
|
62
72
|
};
|
|
63
|
-
export type
|
|
73
|
+
export type NativeStackHeaderLeftProps = NativeStackHeaderRightProps & {
|
|
64
74
|
/**
|
|
65
75
|
* Label text for the button. Usually the title of the previous screen.
|
|
66
76
|
* By default, this is only shown on iOS.
|
|
@@ -218,11 +228,11 @@ export type NativeStackNavigationOptions = {
|
|
|
218
228
|
* Function which returns a React Element to display on the left side of the header.
|
|
219
229
|
* This replaces the back button. See `headerBackVisible` to show the back button along side left element.
|
|
220
230
|
*/
|
|
221
|
-
headerLeft?: (props:
|
|
231
|
+
headerLeft?: (props: NativeStackHeaderLeftProps) => React.ReactNode;
|
|
222
232
|
/**
|
|
223
233
|
* Function which returns a React Element to display on the right side of the header.
|
|
224
234
|
*/
|
|
225
|
-
headerRight?: (props:
|
|
235
|
+
headerRight?: (props: NativeStackHeaderRightProps) => React.ReactNode;
|
|
226
236
|
/**
|
|
227
237
|
* String or a function that returns a React Element to be used by the header.
|
|
228
238
|
* Defaults to screen `title` or route name.
|
|
@@ -282,6 +292,12 @@ export type NativeStackNavigationOptions = {
|
|
|
282
292
|
* @platform ios
|
|
283
293
|
*/
|
|
284
294
|
autoHideHomeIndicator?: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* Whether the keyboard should hide when swiping to the previous screen. Defaults to `false`.
|
|
297
|
+
*
|
|
298
|
+
* @platform ios
|
|
299
|
+
*/
|
|
300
|
+
keyboardHandlingEnabled?: boolean;
|
|
285
301
|
/**
|
|
286
302
|
* Sets the navigation bar color. Defaults to initial navigation bar color.
|
|
287
303
|
*
|
|
@@ -308,7 +324,7 @@ export type NativeStackNavigationOptions = {
|
|
|
308
324
|
*
|
|
309
325
|
* @platform android
|
|
310
326
|
*/
|
|
311
|
-
|
|
327
|
+
statusBarBackgroundColor?: string;
|
|
312
328
|
/**
|
|
313
329
|
* Whether the status bar should be hidden on this screen.
|
|
314
330
|
* Requires setting `View controller-based status bar appearance -> YES` in your Info.plist file.
|
|
@@ -335,7 +351,7 @@ export type NativeStackNavigationOptions = {
|
|
|
335
351
|
statusBarTranslucent?: boolean;
|
|
336
352
|
/**
|
|
337
353
|
* Sets the direction in which you should swipe to dismiss the screen.
|
|
338
|
-
* When using `vertical` option, options `fullScreenGestureEnabled: true`, `
|
|
354
|
+
* When using `vertical` option, options `fullScreenGestureEnabled: true`, `animationMatchesGesture: true` and `animation: 'slide_from_bottom'` are set by default.
|
|
339
355
|
*
|
|
340
356
|
* Supported values:
|
|
341
357
|
* - `vertical` – dismiss screen vertically
|
|
@@ -355,10 +371,10 @@ export type NativeStackNavigationOptions = {
|
|
|
355
371
|
*
|
|
356
372
|
* @platform ios
|
|
357
373
|
*/
|
|
358
|
-
|
|
374
|
+
animationMatchesGesture?: boolean;
|
|
359
375
|
/**
|
|
360
376
|
* Whether the gesture to dismiss should work on the whole screen. Using gesture to dismiss with this option results in the same
|
|
361
|
-
* transition animation as `simple_push`. This behavior can be changed by setting `
|
|
377
|
+
* transition animation as `simple_push`. This behavior can be changed by setting `animationMatchesGesture` prop. Achieving the
|
|
362
378
|
* default iOS animation isn't possible due to platform limitations. Defaults to `false`.
|
|
363
379
|
*
|
|
364
380
|
* Doesn't affect the behavior of screens presented modally.
|
|
@@ -374,6 +390,12 @@ export type NativeStackNavigationOptions = {
|
|
|
374
390
|
* @platform ios
|
|
375
391
|
*/
|
|
376
392
|
gestureEnabled?: boolean;
|
|
393
|
+
/**
|
|
394
|
+
* Use it to restrict the distance from the edges of screen in which the gesture should be recognized. To be used alongside `fullScreenGestureEnabled`.
|
|
395
|
+
*
|
|
396
|
+
* @platform ios
|
|
397
|
+
*/
|
|
398
|
+
gestureResponseDistance?: ScreenProps['gestureResponseDistance'];
|
|
377
399
|
/**
|
|
378
400
|
* The type of animation to use when this screen replaces another screen. Defaults to `pop`.
|
|
379
401
|
*
|
|
@@ -422,6 +444,62 @@ export type NativeStackNavigationOptions = {
|
|
|
422
444
|
* Only supported on iOS and Android.
|
|
423
445
|
*/
|
|
424
446
|
presentation?: Exclude<ScreenProps['stackPresentation'], 'push'> | 'card';
|
|
447
|
+
/**
|
|
448
|
+
* Describes heights where a sheet can rest.
|
|
449
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
450
|
+
* Defaults to `large`.
|
|
451
|
+
*
|
|
452
|
+
* Available values:
|
|
453
|
+
*
|
|
454
|
+
* - `large` - only large detent level will be allowed
|
|
455
|
+
* - `medium` - only medium detent level will be allowed
|
|
456
|
+
* - `all` - all detent levels will be allowed
|
|
457
|
+
*
|
|
458
|
+
* @platform ios
|
|
459
|
+
*/
|
|
460
|
+
sheetAllowedDetents?: SheetDetentTypes;
|
|
461
|
+
/**
|
|
462
|
+
* Whether the sheet should expand to larger detent when scrolling.
|
|
463
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
464
|
+
* Defaults to `true`.
|
|
465
|
+
*
|
|
466
|
+
* @platform ios
|
|
467
|
+
*/
|
|
468
|
+
sheetExpandsWhenScrolledToEdge?: boolean;
|
|
469
|
+
/**
|
|
470
|
+
* The corner radius that the sheet will try to render with.
|
|
471
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
472
|
+
*
|
|
473
|
+
* If set to non-negative value it will try to render sheet with provided radius, else it will apply system default.
|
|
474
|
+
*
|
|
475
|
+
* If left unset system default is used.
|
|
476
|
+
*
|
|
477
|
+
* @platform ios
|
|
478
|
+
*/
|
|
479
|
+
sheetCornerRadius?: number;
|
|
480
|
+
/**
|
|
481
|
+
* Boolean indicating whether the sheet shows a grabber at the top.
|
|
482
|
+
* Works only when `presentation` is set to `formSheet`.
|
|
483
|
+
* Defaults to `false`.
|
|
484
|
+
*
|
|
485
|
+
* @platform ios
|
|
486
|
+
*/
|
|
487
|
+
sheetGrabberVisible?: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* The largest sheet detent for which a view underneath won't be dimmed.
|
|
490
|
+
* Works only when `presentation` is se tto `formSheet`.
|
|
491
|
+
*
|
|
492
|
+
* If this prop is set to:
|
|
493
|
+
*
|
|
494
|
+
* - `large` - the view underneath won't be dimmed at any detent level
|
|
495
|
+
* - `medium` - the view underneath will be dimmed only when detent level is `large`
|
|
496
|
+
* - `all` - the view underneath will be dimmed for any detent level
|
|
497
|
+
*
|
|
498
|
+
* Defaults to `all`.
|
|
499
|
+
*
|
|
500
|
+
* @platform ios
|
|
501
|
+
*/
|
|
502
|
+
sheetLargestUndimmedDetent?: SheetDetentTypes;
|
|
425
503
|
/**
|
|
426
504
|
* The display orientation to use for the screen.
|
|
427
505
|
*
|