@amazon-devices/react-native-screens 3.0.9000000000 → 3.0.9000000003

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.
Files changed (274) hide show
  1. package/SystemModules/amzn__react-native-screens-3.private.modules.txt +116 -61
  2. package/kepler-compatibility.json +5 -2
  3. package/lib/commonjs/TransitionProgressContext.js.map +1 -1
  4. package/lib/commonjs/components/DebugContainer.js.map +1 -1
  5. package/lib/commonjs/components/DebugContainer.web.js.map +1 -1
  6. package/lib/commonjs/components/Screen.web.js.map +1 -1
  7. package/lib/commonjs/components/ScreenStackHeaderConfig.js.map +1 -1
  8. package/lib/commonjs/components/ScreenStackHeaderConfig.web.js.map +1 -1
  9. package/lib/commonjs/components/ScreenStackItem.js.map +1 -1
  10. package/lib/commonjs/components/SearchBar.js.map +1 -1
  11. package/lib/commonjs/components/helpers/usePrevious.js.map +1 -1
  12. package/lib/commonjs/gesture-handler/ScreenGestureDetector.js.map +1 -1
  13. package/lib/commonjs/index.js +0 -210
  14. package/lib/commonjs/index.js.map +1 -1
  15. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  16. package/lib/commonjs/native-stack/utils/AnimatedHeaderHeightContext.js.map +1 -1
  17. package/lib/commonjs/native-stack/utils/HeaderHeightContext.js.map +1 -1
  18. package/lib/commonjs/native-stack/utils/SafeAreaProviderCompat.js.map +1 -1
  19. package/lib/commonjs/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -1
  20. package/lib/commonjs/native-stack/utils/useBackPressSubscription.js.map +1 -1
  21. package/lib/commonjs/native-stack/utils/useHeaderHeight.js.map +1 -1
  22. package/lib/commonjs/native-stack/views/HeaderConfig.js.map +1 -1
  23. package/lib/commonjs/native-stack/views/NativeStackView.js.map +1 -1
  24. package/lib/commonjs/reanimated/ReanimatedHeaderHeightContext.js.map +1 -1
  25. package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
  26. package/lib/commonjs/reanimated/ReanimatedTransitionProgressContext.js.map +1 -1
  27. package/lib/commonjs/reanimated/useReanimatedHeaderHeight.js.map +1 -1
  28. package/lib/commonjs/reanimated/useReanimatedTransitionProgress.js.map +1 -1
  29. package/lib/commonjs/useTransitionProgress.js.map +1 -1
  30. package/lib/module/components/Screen.web.js.map +1 -1
  31. package/lib/module/components/ScreenStackHeaderConfig.js.map +1 -1
  32. package/lib/module/components/ScreenStackHeaderConfig.web.js.map +1 -1
  33. package/lib/module/components/SearchBar.js.map +1 -1
  34. package/lib/module/components/helpers/usePrevious.js.map +1 -1
  35. package/lib/module/native-stack/utils/useBackPressSubscription.js.map +1 -1
  36. package/lib/module/native-stack/views/HeaderConfig.js.map +1 -1
  37. package/lib/module/native-stack/views/NativeStackView.js.map +1 -1
  38. package/lib/typescript/components/Screen.web.d.ts +1 -1
  39. package/lib/typescript/components/Screen.web.d.ts.map +1 -1
  40. package/lib/typescript/components/ScreenStackHeaderConfig.d.ts +5 -5
  41. package/lib/typescript/components/ScreenStackHeaderConfig.d.ts.map +1 -1
  42. package/lib/typescript/components/ScreenStackHeaderConfig.web.d.ts +6 -6
  43. package/lib/typescript/components/ScreenStackHeaderConfig.web.d.ts.map +1 -1
  44. package/lib/typescript/components/SearchBar.d.ts.map +1 -1
  45. package/lib/typescript/components/helpers/usePrevious.d.ts.map +1 -1
  46. package/lib/typescript/native-stack/utils/useBackPressSubscription.d.ts.map +1 -1
  47. package/lib/typescript/native-stack/views/HeaderConfig.d.ts +2 -2
  48. package/lib/typescript/native-stack/views/HeaderConfig.d.ts.map +1 -1
  49. package/lib/typescript/native-stack/views/NativeStackView.d.ts.map +1 -1
  50. package/lib/typescript/types.d.ts +2 -2
  51. package/lib/typescript/types.d.ts.map +1 -1
  52. package/oss-attribution/attribution.txt +77 -0
  53. package/oss-attribution/licenseInfos.json +27 -0
  54. package/package.json +1 -1
  55. package/src/index.tsx +0 -55
  56. package/SystemBundles/31d5b6b69618249f6233b73a1de7c4d890c86be7ccb031ce7cf2dcc41783f9f7.bundle +0 -45301
  57. package/SystemBundles/31d5b6b69618249f6233b73a1de7c4d890c86be7ccb031ce7cf2dcc41783f9f7.map +0 -13711
  58. package/lib/commonjs/TransitionProgressContext.js +0 -12
  59. package/lib/commonjs/components/DebugContainer.js +0 -39
  60. package/lib/commonjs/components/DebugContainer.web.js +0 -15
  61. package/lib/commonjs/components/FullWindowOverlay.js +0 -31
  62. package/lib/commonjs/components/FullWindowOverlay.web.js +0 -9
  63. package/lib/commonjs/components/Screen.js +0 -286
  64. package/lib/commonjs/components/Screen.web.js +0 -47
  65. package/lib/commonjs/components/ScreenContainer.js +0 -32
  66. package/lib/commonjs/components/ScreenContainer.web.js +0 -10
  67. package/lib/commonjs/components/ScreenContentWrapper.js +0 -17
  68. package/lib/commonjs/components/ScreenContentWrapper.web.js +0 -10
  69. package/lib/commonjs/components/ScreenFooter.js +0 -25
  70. package/lib/commonjs/components/ScreenFooter.web.js +0 -11
  71. package/lib/commonjs/components/ScreenStack.js +0 -67
  72. package/lib/commonjs/components/ScreenStack.web.js +0 -10
  73. package/lib/commonjs/components/ScreenStackHeaderConfig.js +0 -90
  74. package/lib/commonjs/components/ScreenStackHeaderConfig.web.js +0 -27
  75. package/lib/commonjs/components/ScreenStackItem.js +0 -107
  76. package/lib/commonjs/components/SearchBar.js +0 -63
  77. package/lib/commonjs/components/SearchBar.web.js +0 -10
  78. package/lib/commonjs/components/helpers/DelayedFreeze.js +0 -31
  79. package/lib/commonjs/components/helpers/usePrevious.js +0 -15
  80. package/lib/commonjs/contexts.js +0 -11
  81. package/lib/commonjs/core.js +0 -40
  82. package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js +0 -26
  83. package/lib/commonjs/fabric/ModalScreenNativeComponent.js +0 -14
  84. package/lib/commonjs/fabric/NativeScreensModule.js +0 -10
  85. package/lib/commonjs/fabric/NativeScreensModule.web.js +0 -8
  86. package/lib/commonjs/fabric/ScreenContainerNativeComponent.js +0 -30
  87. package/lib/commonjs/fabric/ScreenContentWrapperNativeComponent.js +0 -18
  88. package/lib/commonjs/fabric/ScreenFooterNativeComponent.js +0 -10
  89. package/lib/commonjs/fabric/ScreenNativeComponent.js +0 -70
  90. package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js +0 -12
  91. package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -32
  92. package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -15
  93. package/lib/commonjs/fabric/ScreenStackNativeComponent.js +0 -32
  94. package/lib/commonjs/fabric/SearchBarNativeComponent.js +0 -18
  95. package/lib/commonjs/gesture-handler/GestureDetectorProvider.js +0 -19
  96. package/lib/commonjs/gesture-handler/RNScreensTurboModule.js +0 -8
  97. package/lib/commonjs/gesture-handler/ScreenGestureDetector.js +0 -201
  98. package/lib/commonjs/gesture-handler/constraints.js +0 -64
  99. package/lib/commonjs/gesture-handler/defaults.js +0 -45
  100. package/lib/commonjs/gesture-handler/fabricUtils.js +0 -66
  101. package/lib/commonjs/gesture-handler/fabricUtils.web.js +0 -17
  102. package/lib/commonjs/gesture-handler/index.js +0 -14
  103. package/lib/commonjs/native-stack/contexts/GHContext.js +0 -12
  104. package/lib/commonjs/native-stack/index.js +0 -49
  105. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +0 -76
  106. package/lib/commonjs/native-stack/types.js +0 -6
  107. package/lib/commonjs/native-stack/utils/AnimatedHeaderHeightContext.js +0 -12
  108. package/lib/commonjs/native-stack/utils/HeaderHeightContext.js +0 -12
  109. package/lib/commonjs/native-stack/utils/SafeAreaProviderCompat.js +0 -75
  110. package/lib/commonjs/native-stack/utils/getDefaultHeaderHeight.js +0 -35
  111. package/lib/commonjs/native-stack/utils/getStatusBarHeight.js +0 -22
  112. package/lib/commonjs/native-stack/utils/useAnimatedHeaderHeight.js +0 -19
  113. package/lib/commonjs/native-stack/utils/useBackPressSubscription.js +0 -52
  114. package/lib/commonjs/native-stack/utils/useHeaderHeight.js +0 -19
  115. package/lib/commonjs/native-stack/views/FontProcessor.js +0 -19
  116. package/lib/commonjs/native-stack/views/FooterComponent.js +0 -17
  117. package/lib/commonjs/native-stack/views/HeaderConfig.js +0 -149
  118. package/lib/commonjs/native-stack/views/NativeStackView.js +0 -420
  119. package/lib/commonjs/reanimated/ReanimatedHeaderHeightContext.js +0 -12
  120. package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js +0 -95
  121. package/lib/commonjs/reanimated/ReanimatedScreen.js +0 -22
  122. package/lib/commonjs/reanimated/ReanimatedScreenProvider.js +0 -39
  123. package/lib/commonjs/reanimated/ReanimatedTransitionProgressContext.js +0 -12
  124. package/lib/commonjs/reanimated/index.js +0 -28
  125. package/lib/commonjs/reanimated/useReanimatedHeaderHeight.js +0 -19
  126. package/lib/commonjs/reanimated/useReanimatedTransitionProgress.js +0 -19
  127. package/lib/commonjs/types.js +0 -6
  128. package/lib/commonjs/useTransitionProgress.js +0 -19
  129. package/lib/commonjs/utils.js +0 -43
  130. package/lib/module/TransitionProgressContext.js +0 -5
  131. package/lib/module/components/DebugContainer.js +0 -30
  132. package/lib/module/components/DebugContainer.web.js +0 -6
  133. package/lib/module/components/FullWindowOverlay.js +0 -24
  134. package/lib/module/components/FullWindowOverlay.web.js +0 -3
  135. package/lib/module/components/Screen.js +0 -282
  136. package/lib/module/components/Screen.web.js +0 -40
  137. package/lib/module/components/ScreenContainer.js +0 -26
  138. package/lib/module/components/ScreenContainer.web.js +0 -4
  139. package/lib/module/components/ScreenContentWrapper.js +0 -10
  140. package/lib/module/components/ScreenContentWrapper.web.js +0 -4
  141. package/lib/module/components/ScreenFooter.js +0 -18
  142. package/lib/module/components/ScreenFooter.web.js +0 -6
  143. package/lib/module/components/ScreenStack.js +0 -63
  144. package/lib/module/components/ScreenStack.web.js +0 -4
  145. package/lib/module/components/ScreenStackHeaderConfig.js +0 -81
  146. package/lib/module/components/ScreenStackHeaderConfig.web.js +0 -14
  147. package/lib/module/components/ScreenStackItem.js +0 -98
  148. package/lib/module/components/SearchBar.js +0 -57
  149. package/lib/module/components/SearchBar.web.js +0 -4
  150. package/lib/module/components/helpers/DelayedFreeze.js +0 -24
  151. package/lib/module/components/helpers/usePrevious.js +0 -9
  152. package/lib/module/contexts.js +0 -4
  153. package/lib/module/core.js +0 -31
  154. package/lib/module/fabric/FullWindowOverlayNativeComponent.js +0 -20
  155. package/lib/module/fabric/ModalScreenNativeComponent.js +0 -10
  156. package/lib/module/fabric/NativeScreensModule.js +0 -5
  157. package/lib/module/fabric/NativeScreensModule.web.js +0 -2
  158. package/lib/module/fabric/ScreenContainerNativeComponent.js +0 -24
  159. package/lib/module/fabric/ScreenContentWrapperNativeComponent.js +0 -10
  160. package/lib/module/fabric/ScreenFooterNativeComponent.js +0 -3
  161. package/lib/module/fabric/ScreenNativeComponent.js +0 -66
  162. package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js +0 -6
  163. package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -29
  164. package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -11
  165. package/lib/module/fabric/ScreenStackNativeComponent.js +0 -28
  166. package/lib/module/fabric/SearchBarNativeComponent.js +0 -12
  167. package/lib/module/gesture-handler/GestureDetectorProvider.js +0 -12
  168. package/lib/module/gesture-handler/RNScreensTurboModule.js +0 -2
  169. package/lib/module/gesture-handler/ScreenGestureDetector.js +0 -193
  170. package/lib/module/gesture-handler/constraints.js +0 -56
  171. package/lib/module/gesture-handler/defaults.js +0 -39
  172. package/lib/module/gesture-handler/fabricUtils.js +0 -61
  173. package/lib/module/gesture-handler/fabricUtils.web.js +0 -10
  174. package/lib/module/gesture-handler/index.js +0 -5
  175. package/lib/module/index.js +0 -33
  176. package/lib/module/native-stack/contexts/GHContext.js +0 -6
  177. package/lib/module/native-stack/index.js +0 -22
  178. package/lib/module/native-stack/navigators/createNativeStackNavigator.js +0 -73
  179. package/lib/module/native-stack/types.js +0 -2
  180. package/lib/module/native-stack/utils/AnimatedHeaderHeightContext.js +0 -4
  181. package/lib/module/native-stack/utils/HeaderHeightContext.js +0 -4
  182. package/lib/module/native-stack/utils/SafeAreaProviderCompat.js +0 -68
  183. package/lib/module/native-stack/utils/getDefaultHeaderHeight.js +0 -29
  184. package/lib/module/native-stack/utils/getStatusBarHeight.js +0 -16
  185. package/lib/module/native-stack/utils/useAnimatedHeaderHeight.js +0 -10
  186. package/lib/module/native-stack/utils/useBackPressSubscription.js +0 -45
  187. package/lib/module/native-stack/utils/useHeaderHeight.js +0 -10
  188. package/lib/module/native-stack/views/FontProcessor.js +0 -12
  189. package/lib/module/native-stack/views/FooterComponent.js +0 -10
  190. package/lib/module/native-stack/views/HeaderConfig.js +0 -139
  191. package/lib/module/native-stack/views/NativeStackView.js +0 -423
  192. package/lib/module/reanimated/ReanimatedHeaderHeightContext.js +0 -5
  193. package/lib/module/reanimated/ReanimatedNativeStackScreen.js +0 -93
  194. package/lib/module/reanimated/ReanimatedScreen.js +0 -16
  195. package/lib/module/reanimated/ReanimatedScreenProvider.js +0 -32
  196. package/lib/module/reanimated/ReanimatedTransitionProgressContext.js +0 -5
  197. package/lib/module/reanimated/index.js +0 -4
  198. package/lib/module/reanimated/useReanimatedHeaderHeight.js +0 -10
  199. package/lib/module/reanimated/useReanimatedTransitionProgress.js +0 -10
  200. package/lib/module/types.js +0 -2
  201. package/lib/module/useTransitionProgress.js +0 -10
  202. package/lib/module/utils.js +0 -35
  203. package/src/TransitionProgressContext.tsx +0 -14
  204. package/src/components/DebugContainer.tsx +0 -46
  205. package/src/components/DebugContainer.web.tsx +0 -7
  206. package/src/components/FullWindowOverlay.tsx +0 -33
  207. package/src/components/FullWindowOverlay.web.tsx +0 -6
  208. package/src/components/Screen.tsx +0 -392
  209. package/src/components/Screen.web.tsx +0 -46
  210. package/src/components/ScreenContainer.tsx +0 -28
  211. package/src/components/ScreenContainer.web.tsx +0 -5
  212. package/src/components/ScreenContentWrapper.tsx +0 -9
  213. package/src/components/ScreenContentWrapper.web.tsx +0 -5
  214. package/src/components/ScreenFooter.tsx +0 -20
  215. package/src/components/ScreenFooter.web.tsx +0 -7
  216. package/src/components/ScreenStack.tsx +0 -112
  217. package/src/components/ScreenStack.web.tsx +0 -5
  218. package/src/components/ScreenStackHeaderConfig.tsx +0 -122
  219. package/src/components/ScreenStackHeaderConfig.web.tsx +0 -39
  220. package/src/components/ScreenStackItem.tsx +0 -174
  221. package/src/components/SearchBar.tsx +0 -102
  222. package/src/components/SearchBar.web.tsx +0 -5
  223. package/src/components/helpers/DelayedFreeze.tsx +0 -27
  224. package/src/components/helpers/usePrevious.tsx +0 -11
  225. package/src/contexts.tsx +0 -9
  226. package/src/core.ts +0 -45
  227. package/src/fabric/FullWindowOverlayNativeComponent.ts +0 -23
  228. package/src/fabric/ModalScreenNativeComponent.ts +0 -115
  229. package/src/fabric/NativeScreensModule.ts +0 -8
  230. package/src/fabric/NativeScreensModule.web.ts +0 -1
  231. package/src/fabric/ScreenContainerNativeComponent.ts +0 -28
  232. package/src/fabric/ScreenContentWrapperNativeComponent.ts +0 -14
  233. package/src/fabric/ScreenFooterNativeComponent.ts +0 -6
  234. package/src/fabric/ScreenNativeComponent.ts +0 -171
  235. package/src/fabric/ScreenNavigationContainerNativeComponent.ts +0 -12
  236. package/src/fabric/ScreenStackHeaderConfigNativeComponent.ts +0 -97
  237. package/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts +0 -26
  238. package/src/fabric/ScreenStackNativeComponent.ts +0 -34
  239. package/src/fabric/SearchBarNativeComponent.ts +0 -83
  240. package/src/gesture-handler/GestureDetectorProvider.tsx +0 -16
  241. package/src/gesture-handler/RNScreensTurboModule.ts +0 -13
  242. package/src/gesture-handler/ScreenGestureDetector.tsx +0 -241
  243. package/src/gesture-handler/constraints.ts +0 -87
  244. package/src/gesture-handler/defaults.ts +0 -46
  245. package/src/gesture-handler/fabricUtils.ts +0 -86
  246. package/src/gesture-handler/fabricUtils.web.ts +0 -10
  247. package/src/gesture-handler/index.tsx +0 -4
  248. package/src/native-stack/contexts/GHContext.tsx +0 -9
  249. package/src/native-stack/index.tsx +0 -27
  250. package/src/native-stack/navigators/createNativeStackNavigator.tsx +0 -110
  251. package/src/native-stack/types.tsx +0 -659
  252. package/src/native-stack/utils/AnimatedHeaderHeightContext.tsx +0 -8
  253. package/src/native-stack/utils/HeaderHeightContext.tsx +0 -5
  254. package/src/native-stack/utils/SafeAreaProviderCompat.tsx +0 -78
  255. package/src/native-stack/utils/getDefaultHeaderHeight.tsx +0 -41
  256. package/src/native-stack/utils/getStatusBarHeight.tsx +0 -22
  257. package/src/native-stack/utils/useAnimatedHeaderHeight.tsx +0 -15
  258. package/src/native-stack/utils/useBackPressSubscription.tsx +0 -66
  259. package/src/native-stack/utils/useHeaderHeight.tsx +0 -15
  260. package/src/native-stack/views/FontProcessor.tsx +0 -14
  261. package/src/native-stack/views/FooterComponent.tsx +0 -10
  262. package/src/native-stack/views/HeaderConfig.tsx +0 -202
  263. package/src/native-stack/views/NativeStackView.tsx +0 -550
  264. package/src/reanimated/ReanimatedHeaderHeightContext.tsx +0 -7
  265. package/src/reanimated/ReanimatedNativeStackScreen.tsx +0 -132
  266. package/src/reanimated/ReanimatedScreen.tsx +0 -26
  267. package/src/reanimated/ReanimatedScreenProvider.tsx +0 -43
  268. package/src/reanimated/ReanimatedTransitionProgressContext.tsx +0 -13
  269. package/src/reanimated/index.tsx +0 -3
  270. package/src/reanimated/useReanimatedHeaderHeight.tsx +0 -14
  271. package/src/reanimated/useReanimatedTransitionProgress.tsx +0 -14
  272. package/src/types.tsx +0 -869
  273. package/src/useTransitionProgress.tsx +0 -15
  274. package/src/utils.ts +0 -40
@@ -1,659 +0,0 @@
1
- /*
2
- * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its affiliates. All rights reserved.
3
- *
4
- * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
5
- *
6
- * Amazon modifications are indicated by [amznmod_* comments].
7
- */
8
-
9
- /*
10
- * Changelog:
11
- * Set up react-native-screens package to build for Kepler
12
- */
13
-
14
- import {
15
- DefaultNavigatorOptions,
16
- Descriptor,
17
- NavigationHelpers,
18
- NavigationProp,
19
- ParamListBase,
20
- StackNavigationState,
21
- StackRouterOptions,
22
- StackActionHelpers,
23
- RouteProp,
24
- // amznmod_react - change imports to kepler packages
25
- } from '@amazon-devices/react-navigation__native';
26
- import * as React from 'react';
27
- import { PropsWithChildren } from 'react';
28
- import {
29
- ImageSourcePropType,
30
- StyleProp,
31
- ViewStyle,
32
- ColorValue,
33
- } from 'react-native';
34
- import {
35
- GestureDetectorBridge,
36
- ScreenProps,
37
- ScreenStackHeaderConfigProps,
38
- SearchBarProps,
39
- } from '../types';
40
-
41
- /**
42
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
43
- */
44
- export type NativeStackNavigationEventMap = {
45
- /**
46
- * Event which fires when the screen appears.
47
- *
48
- * @deprecated Use `transitionEnd` event with `data.closing: false` instead.
49
- */
50
- appear: { data: undefined };
51
- /**
52
- * Event which fires when the current screen is dismissed by hardware back (on Android) or dismiss gesture (swipe back or down).
53
- */
54
- dismiss: { data: undefined };
55
- /**
56
- * Event which fires when a transition animation starts.
57
- */
58
- transitionStart: { data: { closing: boolean } };
59
- /**
60
- * Event which fires when a transition animation ends.
61
- */
62
- transitionEnd: { data: { closing: boolean } };
63
- /**
64
- * Event which fires when a swipe back is canceled on iOS.
65
- */
66
- gestureCancel: { data: undefined };
67
- /**
68
- * Event which fires when a header height gets changed.
69
- */
70
- headerHeightChange: { data: { headerHeight: number } };
71
- /**
72
- * Event which fires when screen is in sheet presentation & it's detent changes.
73
- *
74
- * In payload it caries two fields:
75
- *
76
- * * index - current detent index in the `sheetAllowedDetents` array,
77
- * * isStable - on Android `false` value means that the user is dragging the sheet or it is settling; on iOS it is always `true`.
78
- */
79
- sheetDetentChange: { data: { index: number; isStable: boolean } };
80
- };
81
-
82
- /**
83
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
84
- */
85
- export type NativeStackNavigationProp<
86
- ParamList extends ParamListBase,
87
- RouteName extends keyof ParamList = string,
88
- > = NavigationProp<
89
- ParamList,
90
- RouteName,
91
- //@ts-ignore
92
- StackNavigationState<ParamList>,
93
- NativeStackNavigationOptions,
94
- NativeStackNavigationEventMap
95
- > &
96
- StackActionHelpers<ParamList>;
97
-
98
- /**
99
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
100
- */
101
- export type NativeStackScreenProps<
102
- ParamList extends ParamListBase,
103
- RouteName extends keyof ParamList = string,
104
- > = {
105
- navigation: NativeStackNavigationProp<ParamList, RouteName>;
106
- route: RouteProp<ParamList, RouteName>;
107
- };
108
-
109
- /**
110
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
111
- */
112
- export type NativeStackNavigationHelpers = NavigationHelpers<
113
- ParamListBase,
114
- NativeStackNavigationEventMap
115
- >;
116
-
117
- /**
118
- * We want it to be an empty object beacuse navigator does not have any additional config
119
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
120
- */
121
- export type NativeStackNavigationConfig = {}; // eslint-disable-line @typescript-eslint/ban-types
122
-
123
- /**
124
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
125
- */
126
- export type NativeStackNavigationOptions = {
127
- /**
128
- * Image to display in the header as the back button.
129
- * Defaults to back icon image for the platform (a chevron on iOS and an arrow on Android).
130
- */
131
- backButtonImage?: ImageSourcePropType;
132
- /**
133
- * Whether to show the back button with custom left side of the header.
134
- */
135
- backButtonInCustomView?: boolean;
136
- /**
137
- * Style object for the scene content.
138
- *
139
- * As a workaround to truncated sheet content, formSheet uses backgroundColor from contentStyle and applies it on Screen.
140
- */
141
- contentStyle?: StyleProp<ViewStyle>;
142
- /**
143
- * Boolean indicating that swipe dismissal should trigger animation provided by `stackAnimation`. Defaults to `false`.
144
- *
145
- * @platform ios
146
- */
147
- customAnimationOnSwipe?: boolean;
148
- /**
149
- * Whether the stack should be in rtl or ltr form.
150
- */
151
- direction?: 'rtl' | 'ltr';
152
- /**
153
- * Boolean indicating whether to show the menu on longPress of iOS >= 14 back button.
154
- * @platform ios
155
- */
156
- disableBackButtonMenu?: boolean;
157
- /**
158
- * How the back button behaves by default (when not customized). Available on iOS>=14, and is used only when none of: `backTitleFontFamily`, `backTitleFontSize`, `disableBackButtonMenu` or `backTitle` is set.
159
- * The following values are currently supported (they correspond to https://developer.apple.com/documentation/uikit/uinavigationitembackbuttondisplaymode?language=objc):
160
- * - "default" – show given back button previous controller title, system generic or just icon based on available space
161
- * - "generic" – show given system generic or just icon based on available space
162
- * - "minimal" – show just an icon
163
- * @platform ios
164
- */
165
- backButtonDisplayMode?: ScreenStackHeaderConfigProps['backButtonDisplayMode'];
166
- /**
167
- * Whether inactive screens should be suspended from re-rendering. Defaults to `false`.
168
- * Defaults to `true` when `enableFreeze()` is run at the top of the application.
169
- */
170
- freezeOnBlur?: boolean;
171
- /**
172
- * Boolean indicating whether the swipe gesture should work on whole screen. Swiping with this option results in the same transition animation as `simple_push` by default.
173
- * It can be changed to other custom animations with `customAnimationOnSwipe` prop, but default iOS swipe animation is not achievable due to usage of custom recognizer.
174
- * Defaults to `false`.
175
- *
176
- * @platform ios
177
- */
178
- fullScreenSwipeEnabled?: boolean;
179
- /**
180
- * Whether the full screen dismiss gesture has shadow under view during transition. The gesture uses custom transition and thus
181
- * doesn't have a shadow by default. When enabled, a custom shadow view is added during the transition which tries to mimic the
182
- * default iOS shadow. Defaults to `true`.
183
- *
184
- * This does not affect the behavior of transitions that don't use gestures, enabled by `fullScreenGestureEnabled` prop.
185
- *
186
- * @platform ios
187
- */
188
- fullScreenSwipeShadowEnabled?: boolean;
189
- /**
190
- * Whether you can use gestures to dismiss this screen. Defaults to `true`.
191
- * Only supported on iOS.
192
- *
193
- * @platform ios
194
- */
195
- gestureEnabled?: boolean;
196
- /**
197
- * Use it to restrict the distance from the edges of screen in which the gesture should be recognized. To be used alongside `fullScreenSwipeEnabled`.
198
- *
199
- * @platform ios
200
- */
201
- gestureResponseDistance?: ScreenProps['gestureResponseDistance'];
202
- /**
203
- * Title to display in the back button.
204
- * Only supported on iOS.
205
- *
206
- * @platform ios
207
- */
208
- headerBackTitle?: string;
209
- /**
210
- * Style object for header back title. Supported properties:
211
- * - fontFamily
212
- * - fontSize
213
- *
214
- * Only supported on iOS.
215
- *
216
- * @platform ios
217
- */
218
- headerBackTitleStyle?: {
219
- fontFamily?: string;
220
- fontSize?: number;
221
- };
222
- /**
223
- * Whether the back button title should be visible or not. Defaults to `true`.
224
- * Only supported on iOS.
225
- *
226
- * @platform ios
227
- */
228
- headerBackTitleVisible?: boolean;
229
- /**
230
- * Function which returns a React Element to display in the center of the header.
231
- */
232
- headerCenter?: (props: { tintColor?: ColorValue }) => React.ReactNode;
233
- /**
234
- * Boolean indicating whether to hide the back button in header.
235
- */
236
- headerHideBackButton?: boolean;
237
- /**
238
- * Boolean indicating whether to hide the elevation shadow or the bottom border on the header.
239
- */
240
- headerHideShadow?: boolean;
241
- /**
242
- * Controls the style of the navigation header when the edge of any scrollable content reaches the matching edge of the navigation bar. Supported properties:
243
- * - backgroundColor
244
- *
245
- * @platform ios
246
- */
247
- headerLargeStyle?: {
248
- backgroundColor?: ColorValue;
249
- };
250
- /**
251
- * Boolean to set native property to prefer large title header (like in iOS setting).
252
- * For large title to collapse on scroll, the content of the screen should be wrapped in a scrollable view such as `ScrollView` or `FlatList`.
253
- * If the scrollable area doesn't fill the screen, the large title won't collapse on scroll.
254
- * Only supported on iOS.
255
- *
256
- * @platform ios
257
- */
258
- headerLargeTitle?: boolean;
259
- /**
260
- * Boolean that allows for disabling drop shadow under navigation header when the edge of any scrollable content reaches the matching edge of the navigation bar.
261
- */
262
- headerLargeTitleHideShadow?: boolean;
263
- /**
264
- * Style object for header large title. Supported properties:
265
- * - fontFamily
266
- * - fontSize
267
- * - color
268
- *
269
- * Only supported on iOS.
270
- *
271
- * @platform ios
272
- */
273
- headerLargeTitleStyle?: {
274
- fontFamily?: string;
275
- fontSize?: number;
276
- fontWeight?: string;
277
- color?: ColorValue;
278
- };
279
- /**
280
- * Function which returns a React Element to display on the left side of the header.
281
- */
282
- headerLeft?: (props: { tintColor?: ColorValue }) => React.ReactNode;
283
- /**
284
- * Function which returns a React Element to display on the right side of the header.
285
- */
286
- headerRight?: (props: { tintColor?: ColorValue }) => React.ReactNode;
287
- /**
288
- * Whether to show the header.
289
- */
290
- headerShown?: boolean;
291
- /**
292
- * Style object for header title. Supported properties:
293
- * - backgroundColor
294
- * - blurEffect
295
- */
296
- headerStyle?: {
297
- backgroundColor?: ColorValue;
298
- blurEffect?: ScreenStackHeaderConfigProps['blurEffect'];
299
- };
300
- /**
301
- * Tint color for the header. Changes the color of back button and title.
302
- */
303
- headerTintColor?: ColorValue;
304
- /**
305
- * String to display in the header as title. Defaults to scene `title`.
306
- */
307
- headerTitle?: string;
308
- /**
309
- * Style object for header title. Supported properties:
310
- * - fontFamily
311
- * - fontSize
312
- * - fontWeight
313
- * - color
314
- */
315
- headerTitleStyle?: {
316
- fontFamily?: string;
317
- fontSize?: number;
318
- fontWeight?: string;
319
- color?: ColorValue;
320
- };
321
- /**
322
- * A flag to that lets you opt out of insetting the header. You may want to
323
- * set this to `false` if you use an opaque status bar. Defaults to `true`.
324
- * Only supported on Android. Insets are always applied on iOS because the
325
- * header cannot be opaque.
326
- *
327
- * @platform android
328
- */
329
- headerTopInsetEnabled?: boolean;
330
- /**
331
- * Boolean indicating whether the navigation bar is translucent.
332
- */
333
- headerTranslucent?: boolean;
334
- /**
335
- * Whether the home indicator should be hidden on this screen. Defaults to `false`.
336
- *
337
- * @platform ios
338
- */
339
- homeIndicatorHidden?: boolean;
340
- /**
341
- * Whether the keyboard should hide when swiping to the previous screen. Defaults to `false`.
342
- *
343
- * @platform ios
344
- */
345
- hideKeyboardOnSwipe?: boolean;
346
- /**
347
- * Boolean indicating whether, when the Android default back button is clicked, the `pop` action should be performed on the native side or on the JS side to be able to prevent it.
348
- * Unfortunately the same behavior is not available on iOS since the behavior of native back button cannot be changed there.
349
- * Defaults to `false`.
350
- *
351
- * @platform android
352
- */
353
- nativeBackButtonDismissalEnabled?: boolean;
354
- /**
355
- * Sets the navigation bar color. Defaults to initial status bar color.
356
- *
357
- * @platform android
358
- */
359
- navigationBarColor?: ColorValue;
360
- /**
361
- * Boolean indicating whether the content should be visible behind the navigation bar. Defaults to `false`.
362
- *
363
- * @platform android
364
- */
365
- navigationBarTranslucent?: boolean;
366
- /**
367
- * Sets the visibility of the navigation bar. Defaults to `false`.
368
- *
369
- * @platform android
370
- */
371
- navigationBarHidden?: boolean;
372
- /**
373
- * How should the screen replacing another screen animate. Defaults to `pop`.
374
- * The following values are currently supported:
375
- * - "push" – the new screen will perform push animation.
376
- * - "pop" – the new screen will perform pop animation.
377
- */
378
- replaceAnimation?: ScreenProps['replaceAnimation'];
379
- /**
380
- * In which orientation should the screen appear.
381
- * The following values are currently supported:
382
- * - "default" - resolves to "all" without "portrait_down" on iOS. On Android, this lets the system decide the best orientation.
383
- * - "all" – all orientations are permitted
384
- * - "portrait" – portrait orientations are permitted
385
- * - "portrait_up" – right-side portrait orientation is permitted
386
- * - "portrait_down" – upside-down portrait orientation is permitted
387
- * - "landscape" – landscape orientations are permitted
388
- * - "landscape_left" – landscape-left orientation is permitted
389
- * - "landscape_right" – landscape-right orientation is permitted
390
- */
391
- screenOrientation?: ScreenProps['screenOrientation'];
392
- /**
393
- * Object in which you should pass props in order to render native iOS searchBar.
394
- */
395
- searchBar?: SearchBarProps;
396
- /**
397
- * Describes heights where a sheet can rest.
398
- * Works only when `stackPresentation` is set to `formSheet`.
399
- *
400
- * Heights should be described as fraction (a number from [0, 1] interval) of screen height / maximum detent height.
401
- *
402
- * Please note that the array **must** be sorted in ascending order.
403
- *
404
- * Defaults to `[1.0]` literal.
405
- */
406
- sheetAllowedDetents?: ScreenProps['sheetAllowedDetents'] | 'fitToContents';
407
- /**
408
- * Integer value describing elevation of the sheet, impacting shadow on the top edge of the sheet.
409
- *
410
- * Not dynamic.
411
- *
412
- * Defaults to `24`.
413
- *
414
- * @platform Android
415
- */
416
- sheetElevation?: ScreenProps['sheetElevation'];
417
- /**
418
- * Whether the sheet should expand to larger detent when scrolling.
419
- * Works only when `stackPresentation` is set to `formSheet`.
420
- * Defaults to `true`.
421
- *
422
- * @platform ios
423
- */
424
- sheetExpandsWhenScrolledToEdge?: ScreenProps['sheetExpandsWhenScrolledToEdge'];
425
- /**
426
- * The corner radius that the sheet will try to render with.
427
- * Works only when `stackPresentation` is set to `formSheet`.
428
- *
429
- * If set to non-negative value it will try to render sheet with provided radius, else it will apply system default.
430
- *
431
- * If left unset system default is used.
432
- */
433
- sheetCornerRadius?: ScreenProps['sheetCornerRadius'];
434
- /**
435
- * Boolean indicating whether the sheet shows a grabber at the top.
436
- * Works only when `stackPresentation` is set to `formSheet`.
437
- * Defaults to `false`.
438
- *
439
- * @platform ios
440
- */
441
- sheetGrabberVisible?: ScreenProps['sheetGrabberVisible'];
442
- /**
443
- * Index of the detent the sheet should expand to after being opened.
444
- * Works only when `stackPresentation` is set to `formSheet`.
445
- *
446
- * Defaults to `0` - which represents first detent in the detents array.
447
- */
448
- sheetInitialDetentIndex?: ScreenProps['sheetInitialDetentIndex'];
449
- /**
450
- * The largest sheet detent for which a view underneath won't be dimmed.
451
- * Works only when `stackPresentation` is set to `formSheet`.
452
- *
453
- * This prop can be set to an number, which indicates index of detent in `sheetAllowedDetents` array for which
454
- * there won't be a dimming view beneath the sheet.
455
- *
456
- * Additionaly there are following options available:
457
- *
458
- * * `none` - there will be dimming view for all detents levels,
459
- * * `largest` - there won't be a dimming view for any detent level.
460
- *
461
- * There also legacy & **deprecated** prop values available: `medium`, `large` (don't confuse with `largest`), `all`, which work in tandem with
462
- * corresponding legacy prop values for `sheetAllowedDetents` prop.
463
- *
464
- * Defaults to `none`, indicating that the dimming view should be always present.
465
- */
466
- sheetLargestUndimmedDetentIndex?: ScreenProps['sheetLargestUndimmedDetentIndex'];
467
- /**
468
- * How the screen should appear/disappear when pushed or popped at the top of the stack.
469
- * The following values are currently supported:
470
- * - "default" – uses a platform default animation
471
- * - "fade" – fades screen in or out
472
- * - "fade_from_bottom" – performs a fade from bottom animation
473
- * - "flip" – flips the screen, requires stackPresentation: "modal" (iOS only)
474
- * - "simple_push" – performs a default animation, but without native header transition (iOS only)
475
- * - "slide_from_bottom" – performs a slide from bottom animation
476
- * - "slide_from_right" - slide in the new screen from right to left (Android only, resolves to default transition on iOS)
477
- * - "slide_from_left" - slide in the new screen from left to right
478
- * - "ios_from_right" - iOS like slide in animation. pushes in the new screen from right to left (Android only, resolves to default transition on iOS)
479
- * - "ios_from_left" - iOS like slide in animation. pushes in the new screen from left to right (Android only, resolves to default transition on iOS)
480
- * - "none" – the screen appears/dissapears without an animation
481
- */
482
- stackAnimation?: ScreenProps['stackAnimation'];
483
- /**
484
- * How should the screen be presented.
485
- * The following values are currently supported:
486
- * - "push" – the new screen will be pushed onto a stack which on iOS means that the default animation will be slide from the side, the animation on Android may vary depending on the OS version and theme.
487
- * - "modal" – the new screen will be presented modally. In addition this allow for a nested stack to be rendered inside such screens.
488
- * - "transparentModal" – the new screen will be presented modally but in addition the second to last screen will remain attached to the stack container such that if the top screen is non opaque the content below can still be seen. If "modal" is used instead the below screen will get unmounted as soon as the transition ends.
489
- * - "containedModal" – will use "UIModalPresentationCurrentContext" modal style on iOS and will fallback to "modal" on Android.
490
- * - "containedTransparentModal" – will use "UIModalPresentationOverCurrentContext" modal style on iOS and will fallback to "transparentModal" on Android.
491
- * - "fullScreenModal" – will use "UIModalPresentationFullScreen" modal style on iOS and will fallback to "modal" on Android.
492
- * - "formSheet" – will use "UIModalPresentationFormSheet" modal style on iOS and will fallback to "modal" on Android.
493
- */
494
- stackPresentation?: ScreenProps['stackPresentation'];
495
- /**
496
- * Sets the status bar animation (similar to the `StatusBar` component). Requires enabling (or deleting) `View controller-based status bar appearance` in your Info.plist file on iOS.
497
- */
498
- statusBarAnimation?: ScreenProps['statusBarAnimation'];
499
- /**
500
- * Sets the status bar color (similar to the `StatusBar` component). Defaults to initial status bar color.
501
- *
502
- * @platform android
503
- */
504
- statusBarColor?: ColorValue;
505
- /**
506
- * Whether the status bar should be hidden on this screen. Requires enabling (or deleting) `View controller-based status bar appearance` in your Info.plist file on iOS. Defaults to `false`.
507
- */
508
- statusBarHidden?: boolean;
509
- /**
510
- * Sets the status bar color (similar to the `StatusBar` component). Requires enabling (or deleting) `View controller-based status bar appearance` in your Info.plist file on iOS. Defaults to `auto`.
511
- */
512
- statusBarStyle?: ScreenProps['statusBarStyle'];
513
- /**
514
- * Sets the translucency of the status bar. Defaults to `false`.
515
- *
516
- * @platform android
517
- */
518
- statusBarTranslucent?: boolean;
519
- /**
520
- * Sets the direction in which you should swipe to dismiss the screen.
521
- * When using `vertical` option, options `fullScreenSwipeEnabled: true`, `customAnimationOnSwipe: true` and `stackAnimation: 'slide_from_bottom'` are set by default.
522
- * The following values are supported:
523
- * - `vertical` – dismiss screen vertically
524
- * - `horizontal` – dismiss screen horizontally (default)
525
- * @platform ios
526
- */
527
- swipeDirection?: ScreenProps['swipeDirection'];
528
- /**
529
- * String that can be displayed in the header as a fallback for `headerTitle`.
530
- */
531
- title?: string;
532
- /**
533
- * Changes the duration (in milliseconds) of `slide_from_bottom`, `fade_from_bottom`, `fade` and `simple_push` transitions on iOS. Defaults to `500`.
534
- * The duration of `default` and `flip` transitions isn't customizable.
535
- *
536
- * @platform ios
537
- */
538
- transitionDuration?: number;
539
-
540
- goBackGesture?: GoBackGesture;
541
- transitionAnimation?: AnimatedScreenTransition;
542
- screenEdgeGesture?: boolean;
543
- /**
544
- * Footer component that can be used alongside form sheet stack presentation style.
545
- *
546
- * This option is provided, because due to implementation details it might be problematic
547
- * to implement such layout with JS-only code.
548
- *
549
- * Please note that this prop is marked as unstable and might be subject of breaking changes,
550
- * even removal.
551
- *
552
- * @platform android
553
- */
554
- unstable_sheetFooter?: () => React.ReactNode;
555
- };
556
-
557
- /**
558
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
559
- */
560
- export type NativeStackNavigatorProps =
561
- //@ts-ignore
562
- DefaultNavigatorOptions<NativeStackNavigationOptions> &
563
- StackRouterOptions &
564
- NativeStackNavigationConfig;
565
-
566
- /**
567
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
568
- */
569
- //@ts-ignore
570
- export type NativeStackDescriptor = Descriptor<
571
- ParamListBase,
572
- string,
573
- StackNavigationState<ParamListBase>,
574
- NativeStackNavigationOptions
575
- >;
576
-
577
- /**
578
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
579
- */
580
- export type NativeStackDescriptorMap = {
581
- [key: string]: NativeStackDescriptor;
582
- };
583
-
584
- /**
585
- * Those below copied to src/types.ts should be removed with next minor and native-stack v5 removal
586
- */
587
-
588
- /**
589
- * copy from GestureHandler to avoid strong dependency
590
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
591
- */
592
- export type PanGestureHandlerEventPayload = {
593
- x: number;
594
- y: number;
595
- absoluteX: number;
596
- absoluteY: number;
597
- translationX: number;
598
- translationY: number;
599
- velocityX: number;
600
- velocityY: number;
601
- };
602
-
603
- /**
604
- * copy from Reanimated to avoid strong dependency
605
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
606
- */
607
- export type GoBackGesture =
608
- | 'swipeRight'
609
- | 'swipeLeft'
610
- | 'swipeUp'
611
- | 'swipeDown'
612
- | 'verticalSwipe'
613
- | 'horizontalSwipe'
614
- | 'twoDimensionalSwipe';
615
-
616
- /**
617
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
618
- */
619
- export interface MeasuredDimensions {
620
- x: number;
621
- y: number;
622
- width: number;
623
- height: number;
624
- pageX: number;
625
- pageY: number;
626
- }
627
-
628
- /**
629
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
630
- */
631
- export type AnimatedScreenTransition = {
632
- topScreenStyle: (
633
- event: PanGestureHandlerEventPayload,
634
- screenSize: MeasuredDimensions,
635
- ) => Record<string, unknown>;
636
- belowTopScreenStyle: (
637
- event: PanGestureHandlerEventPayload,
638
- screenSize: MeasuredDimensions,
639
- ) => Record<string, unknown>;
640
- };
641
-
642
- /**
643
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
644
- */
645
- export type ScreensRefsHolder = React.MutableRefObject<
646
- Record<string, React.MutableRefObject<React.Ref<React.Component>>>
647
- >;
648
-
649
- /**
650
- * @deprecated NativeStack has been moved from react-native-screens/native-stack to @react-navigation/native since version v6. With react-native-screens v4 native stack v5 (react-native-screens/native-stack) is deprecated and marked for removal in the upcoming minor release, react-native-screens v4 will support only @react-navigation/native-stack v7.
651
- */
652
- export type GestureProviderProps = PropsWithChildren<{
653
- gestureDetectorBridge: React.MutableRefObject<GestureDetectorBridge>;
654
- screensRefs: ScreensRefsHolder;
655
- currentRouteKey: string;
656
- goBackGesture: GoBackGesture | undefined;
657
- transitionAnimation: AnimatedScreenTransition | undefined;
658
- screenEdgeGesture: boolean | undefined;
659
- }>;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- import { Animated } from 'react-native';
3
-
4
- const AnimatedHeaderHeightContext = React.createContext<
5
- Animated.Value | undefined
6
- >(undefined);
7
-
8
- export default AnimatedHeaderHeightContext;
@@ -1,5 +0,0 @@
1
- import * as React from 'react';
2
-
3
- const HeaderHeightContext = React.createContext<number | undefined>(undefined);
4
-
5
- export default HeaderHeightContext;