@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,28 +0,0 @@
1
- 'use client';
2
- /*
3
- * Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
4
- *
5
- * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
6
- *
7
- * Amazon modifications are indicated by [amznmod_* comments].
8
- */
9
-
10
- /*
11
- * Changelog:
12
- * Set up react-native-screens package to build for Kepler
13
- */
14
-
15
-
16
- import type { ViewProps, HostComponent } from 'react-native';
17
-
18
- // amznmod_react - register component on Kepler
19
- // @ts-ignore
20
- import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
21
-
22
- interface NativeProps extends ViewProps {}
23
-
24
- // amznmod_react - register component on Kepler
25
- const ContainerComponent = 'RNSScreenContainer'
26
-
27
- register(ContainerComponent, {uiViewClassName: ContainerComponent});
28
- export default (ContainerComponent as unknown) as HostComponent<NativeProps>;
@@ -1,14 +0,0 @@
1
- import type { HostComponent, ViewProps } from 'react-native';
2
-
3
- // amznmod_react - register component on Kepler
4
- // @ts-ignore
5
- import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
6
-
7
- export interface NativeProps extends ViewProps {}
8
-
9
-
10
- // amznmod_react - register component on Kepler
11
- const ScreenContentWrapperComponent = 'RNSScreenContentWrapper';
12
-
13
- register(ScreenContentWrapperComponent, {uiViewClassName: ScreenContentWrapperComponent});
14
- export default (ScreenContentWrapperComponent as unknown) as HostComponent<NativeProps>;
@@ -1,6 +0,0 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
2
- import type { ViewProps } from 'react-native';
3
-
4
- export interface NativeProps extends ViewProps {}
5
-
6
- export default codegenNativeComponent<NativeProps>('RNSScreenFooter', {});
@@ -1,171 +0,0 @@
1
- 'use client';
2
- /*
3
- * Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
4
- *
5
- * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
6
- *
7
- * Amazon modifications are indicated by [amznmod_* comments].
8
- */
9
-
10
- /*
11
- * Changelog:
12
- * Set up react-native-screens package to build for Kepler
13
- */
14
-
15
- import type { ViewProps, ColorValue, HostComponent } from 'react-native';
16
- import type {
17
- DirectEventHandler,
18
- WithDefault,
19
- Int32,
20
- Float,
21
- Double,
22
- // @ts-ignore
23
- } from 'react-native/Libraries/Types/CodegenTypes';
24
- // amznmod_react - register component on Kepler
25
- // @ts-ignore
26
- import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
27
-
28
- // eslint-disable-next-line @typescript-eslint/ban-types
29
- type ScreenEvent = Readonly<{}>;
30
-
31
- type ScreenDismissedEvent = Readonly<{
32
- dismissCount: Int32;
33
- }>;
34
-
35
- type TransitionProgressEvent = Readonly<{
36
- progress: Double;
37
- closing: Int32;
38
- goingForward: Int32;
39
- }>;
40
-
41
- type HeaderHeightChangeEvent = Readonly<{
42
- headerHeight: Double;
43
- }>;
44
-
45
- type SheetDetentChangedEvent = Readonly<{
46
- index: Int32;
47
- isStable: boolean;
48
- }>;
49
-
50
- type GestureResponseDistanceType = Readonly<{
51
- start: Float;
52
- end: Float;
53
- top: Float;
54
- bottom: Float;
55
- }>;
56
-
57
- type StackPresentation =
58
- | 'push'
59
- | 'modal'
60
- | 'transparentModal'
61
- | 'fullScreenModal'
62
- | 'formSheet'
63
- | 'containedModal'
64
- | 'containedTransparentModal';
65
-
66
- type StackAnimation =
67
- | 'default'
68
- | 'flip'
69
- | 'simple_push'
70
- | 'none'
71
- | 'fade'
72
- | 'slide_from_right'
73
- | 'slide_from_left'
74
- | 'slide_from_bottom'
75
- | 'fade_from_bottom'
76
- | 'ios_from_right'
77
- | 'ios_from_left';
78
-
79
- type SwipeDirection = 'vertical' | 'horizontal';
80
-
81
- type ReplaceAnimation = 'pop' | 'push';
82
-
83
- export interface NativeProps extends ViewProps {
84
- onAppear?: DirectEventHandler<ScreenEvent>;
85
- onDisappear?: DirectEventHandler<ScreenEvent>;
86
- onDismissed?: DirectEventHandler<ScreenDismissedEvent>;
87
- onNativeDismissCancelled?: DirectEventHandler<ScreenDismissedEvent>;
88
- onWillAppear?: DirectEventHandler<ScreenEvent>;
89
- onWillDisappear?: DirectEventHandler<ScreenEvent>;
90
- onHeaderHeightChange?: DirectEventHandler<HeaderHeightChangeEvent>;
91
- onTransitionProgress?: DirectEventHandler<TransitionProgressEvent>;
92
- onGestureCancel?: DirectEventHandler<ScreenEvent>;
93
- onHeaderBackButtonClicked?: DirectEventHandler<ScreenEvent>;
94
- onSheetDetentChanged?: DirectEventHandler<SheetDetentChangedEvent>;
95
- sheetAllowedDetents?: number[];
96
- sheetLargestUndimmedDetent?: WithDefault<Int32, -1>;
97
- sheetGrabberVisible?: WithDefault<boolean, false>;
98
- sheetCornerRadius?: WithDefault<Float, -1.0>;
99
- sheetExpandsWhenScrolledToEdge?: WithDefault<boolean, false>;
100
- sheetInitialDetent?: WithDefault<Int32, 0>;
101
- sheetElevation?: WithDefault<Int32, 24>;
102
- customAnimationOnSwipe?: boolean;
103
- fullScreenSwipeEnabled?: boolean;
104
- fullScreenSwipeShadowEnabled?: WithDefault<boolean, true>;
105
- homeIndicatorHidden?: boolean;
106
- preventNativeDismiss?: boolean;
107
- gestureEnabled?: WithDefault<boolean, true>;
108
- statusBarColor?: ColorValue;
109
- statusBarHidden?: boolean;
110
- screenOrientation?: string;
111
- statusBarAnimation?: string;
112
- statusBarStyle?: string;
113
- statusBarTranslucent?: boolean;
114
- gestureResponseDistance?: GestureResponseDistanceType;
115
- stackPresentation?: WithDefault<StackPresentation, 'push'>;
116
- stackAnimation?: WithDefault<StackAnimation, 'default'>;
117
- transitionDuration?: WithDefault<Int32, 500>;
118
- replaceAnimation?: WithDefault<ReplaceAnimation, 'pop'>;
119
- swipeDirection?: WithDefault<SwipeDirection, 'horizontal'>;
120
- hideKeyboardOnSwipe?: boolean;
121
- activityState?: 0 | 1 | 2;
122
- navigationBarColor?: ColorValue;
123
- navigationBarTranslucent?: boolean;
124
- navigationBarHidden?: boolean;
125
- nativeBackButtonDismissalEnabled?: boolean;
126
- }
127
-
128
- // amznmod_react - register component on Kepler
129
- const ScreenComponent = 'RNSScreen'
130
-
131
- const viewConfig = {
132
- activityState: true,
133
- stackPresentation: true,
134
- stackAnimation: true,
135
- };
136
-
137
- const bubblingEventTypes = {
138
- topAppear: {
139
- phasedRegistrationNames: {
140
- bubbled: 'onAppear',
141
- captured: 'onAppearCapture'
142
- }
143
- },
144
- topDisappear: {
145
- phasedRegistrationNames: {
146
- bubbled: 'onDisappear',
147
- captured: 'onDisappearCapture'
148
- }
149
- },
150
- topWillAppear: {
151
- phasedRegistrationNames: {
152
- bubbled: 'onWillAppear',
153
- captured: 'onWillAppearCapture'
154
- }
155
- },
156
- topWillDisappear: {
157
- phasedRegistrationNames: {
158
- bubbled: 'onWillDisappear',
159
- captured: 'onWillDisappearCapture'
160
- }
161
- },
162
- topTransitionProgress: {
163
- phasedRegistrationNames: {
164
- bubbled: 'onTransitionProgress',
165
- captured: 'onTransitionProgressCapture'
166
- }
167
- },
168
- };
169
-
170
- register(ScreenComponent, {uiViewClassName: ScreenComponent, validAttributes: viewConfig, bubblingEventTypes: bubblingEventTypes});
171
- export default (ScreenComponent as unknown) as HostComponent<NativeProps>;
@@ -1,12 +0,0 @@
1
- 'use client';
2
-
3
- // @ts-ignore
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
- import type { ViewProps } from 'react-native';
6
-
7
- interface NativeProps extends ViewProps {}
8
-
9
- export default codegenNativeComponent<NativeProps>(
10
- 'RNSScreenNavigationContainer',
11
- {},
12
- );
@@ -1,97 +0,0 @@
1
- 'use client';
2
- /*
3
- * Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
4
- *
5
- * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
6
- *
7
- * Amazon modifications are indicated by [amznmod_* comments].
8
- */
9
-
10
- /*
11
- * Changelog:
12
- * Set up react-native-screens package to build for Kepler
13
- */
14
-
15
- import type { ViewProps, ColorValue, HostComponent } from 'react-native';
16
- import type {
17
- Int32,
18
- WithDefault,
19
- DirectEventHandler,
20
- // @ts-ignore
21
- } from 'react-native/Libraries/Types/CodegenTypes';
22
-
23
- // amznmod_react - register component on Kepler
24
- // @ts-ignore
25
- import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
26
-
27
- type DirectionType = 'rtl' | 'ltr';
28
-
29
- // eslint-disable-next-line @typescript-eslint/ban-types
30
- type OnAttachedEvent = Readonly<{}>;
31
- // eslint-disable-next-line @typescript-eslint/ban-types
32
- type OnDetachedEvent = Readonly<{}>;
33
-
34
- type BackButtonDisplayMode = 'minimal' | 'default' | 'generic';
35
-
36
- type BlurEffect =
37
- | 'none'
38
- | 'extraLight'
39
- | 'light'
40
- | 'dark'
41
- | 'regular'
42
- | 'prominent'
43
- | 'systemUltraThinMaterial'
44
- | 'systemThinMaterial'
45
- | 'systemMaterial'
46
- | 'systemThickMaterial'
47
- | 'systemChromeMaterial'
48
- | 'systemUltraThinMaterialLight'
49
- | 'systemThinMaterialLight'
50
- | 'systemMaterialLight'
51
- | 'systemThickMaterialLight'
52
- | 'systemChromeMaterialLight'
53
- | 'systemUltraThinMaterialDark'
54
- | 'systemThinMaterialDark'
55
- | 'systemMaterialDark'
56
- | 'systemThickMaterialDark'
57
- | 'systemChromeMaterialDark';
58
-
59
- export interface NativeProps extends ViewProps {
60
- onAttached?: DirectEventHandler<OnAttachedEvent>;
61
- onDetached?: DirectEventHandler<OnDetachedEvent>;
62
- backgroundColor?: ColorValue;
63
- backTitle?: string;
64
- backTitleFontFamily?: string;
65
- backTitleFontSize?: Int32;
66
- backTitleVisible?: WithDefault<boolean, 'true'>;
67
- color?: ColorValue;
68
- direction?: WithDefault<DirectionType, 'ltr'>;
69
- hidden?: boolean;
70
- hideShadow?: boolean;
71
- largeTitle?: boolean;
72
- largeTitleFontFamily?: string;
73
- largeTitleFontSize?: Int32;
74
- largeTitleFontWeight?: string;
75
- largeTitleBackgroundColor?: ColorValue;
76
- largeTitleHideShadow?: boolean;
77
- largeTitleColor?: ColorValue;
78
- translucent?: boolean;
79
- title?: string;
80
- titleFontFamily?: string;
81
- titleFontSize?: Int32;
82
- titleFontWeight?: string;
83
- titleColor?: ColorValue;
84
- disableBackButtonMenu?: boolean;
85
- backButtonDisplayMode?: WithDefault<BackButtonDisplayMode, 'default'>;
86
- hideBackButton?: boolean;
87
- backButtonInCustomView?: boolean;
88
- blurEffect?: WithDefault<BlurEffect, 'none'>;
89
- // TODO: implement this props on iOS
90
- topInsetEnabled?: boolean;
91
- }
92
-
93
- // amznmod_react - register component on Kepler
94
- const ScreenStackHeaderConfigComponent = 'RNSScreenStackHeaderConfig'
95
-
96
- register(ScreenStackHeaderConfigComponent, {uiViewClassName: ScreenStackHeaderConfigComponent});
97
- export default (ScreenStackHeaderConfigComponent as unknown) as HostComponent<NativeProps>;
@@ -1,26 +0,0 @@
1
- 'use client';
2
-
3
- // @ts-ignore
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
5
- import type { ViewProps } from 'react-native';
6
- // @ts-ignore
7
- import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
8
-
9
- export type HeaderSubviewTypes =
10
- | 'back'
11
- | 'right'
12
- | 'left'
13
- | 'title'
14
- | 'center'
15
- | 'searchBar';
16
-
17
- export interface NativeProps extends ViewProps {
18
- type?: WithDefault<HeaderSubviewTypes, 'left'>;
19
- }
20
-
21
- export default codegenNativeComponent<NativeProps>(
22
- 'RNSScreenStackHeaderSubview',
23
- {
24
- interfaceOnly: true,
25
- },
26
- );
@@ -1,34 +0,0 @@
1
- 'use client';
2
- /*
3
- * Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
4
- *
5
- * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
6
- *
7
- * Amazon modifications are indicated by [amznmod_* comments].
8
- */
9
-
10
- /*
11
- * Changelog:
12
- * Set up react-native-screens package to build for Kepler
13
- */
14
-
15
- import type { ViewProps, HostComponent } from 'react-native';
16
- // @ts-ignore
17
- import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
18
-
19
- // amznmod_react - register component on Kepler
20
- // @ts-ignore
21
- import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
22
-
23
- // eslint-disable-next-line @typescript-eslint/ban-types
24
- type FinishTransitioningEvent = Readonly<{}>;
25
-
26
- export interface NativeProps extends ViewProps {
27
- onFinishTransitioning?: DirectEventHandler<FinishTransitioningEvent>;
28
- }
29
-
30
- // amznmod_react - register component on Kepler
31
- const ScreenStackComponent = 'RNSScreenStack'
32
-
33
- register(ScreenStackComponent, {uiViewClassName: ScreenStackComponent});
34
- export default (ScreenStackComponent as unknown) as HostComponent<NativeProps>;
@@ -1,83 +0,0 @@
1
- 'use client';
2
-
3
- /* eslint-disable */
4
- // @ts-ignore
5
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
6
- import type { ViewProps, ColorValue, HostComponent } from 'react-native';
7
- import type {
8
- WithDefault,
9
- DirectEventHandler,
10
- // @ts-ignore
11
- } from 'react-native/Libraries/Types/CodegenTypes';
12
- // @ts-ignore
13
- import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
14
-
15
- export type SearchBarEvent = Readonly<{}>;
16
-
17
- export type SearchButtonPressedEvent = Readonly<{
18
- text?: string;
19
- }>;
20
-
21
- export type ChangeTextEvent = Readonly<{
22
- text?: string;
23
- }>;
24
-
25
- type SearchBarPlacement = 'automatic' | 'inline' | 'stacked';
26
-
27
- type AutoCapitalizeType = 'none' | 'words' | 'sentences' | 'characters';
28
-
29
- export interface NativeProps extends ViewProps {
30
- onSearchFocus?: DirectEventHandler<SearchBarEvent> | null;
31
- onSearchBlur?: DirectEventHandler<SearchBarEvent> | null;
32
- onSearchButtonPress?: DirectEventHandler<SearchButtonPressedEvent> | null;
33
- onCancelButtonPress?: DirectEventHandler<SearchBarEvent> | null;
34
- onChangeText?: DirectEventHandler<ChangeTextEvent> | null;
35
- hideWhenScrolling?: boolean;
36
- autoCapitalize?: WithDefault<AutoCapitalizeType, 'none'>;
37
- placeholder?: string;
38
- placement?: WithDefault<SearchBarPlacement, 'stacked'>;
39
- obscureBackground?: boolean;
40
- hideNavigationBar?: boolean;
41
- cancelButtonText?: string;
42
- // TODO: implement these on iOS
43
- barTintColor?: ColorValue;
44
- tintColor?: ColorValue;
45
- textColor?: ColorValue;
46
-
47
- // Android only
48
- disableBackButtonOverride?: boolean;
49
- // TODO: consider creating enum here
50
- inputType?: string;
51
- onClose?: DirectEventHandler<SearchBarEvent> | null;
52
- onOpen?: DirectEventHandler<SearchBarEvent> | null;
53
- hintTextColor?: ColorValue;
54
- headerIconColor?: ColorValue;
55
- shouldShowHintSearchIcon?: WithDefault<boolean, true>;
56
- }
57
-
58
- type ComponentType = HostComponent<NativeProps>;
59
-
60
- interface NativeCommands {
61
- blur: (viewRef: React.ElementRef<ComponentType>) => void;
62
- focus: (viewRef: React.ElementRef<ComponentType>) => void;
63
- clearText: (viewRef: React.ElementRef<ComponentType>) => void;
64
- toggleCancelButton: (
65
- viewRef: React.ElementRef<ComponentType>,
66
- flag: boolean,
67
- ) => void;
68
- setText: (viewRef: React.ElementRef<ComponentType>, text: string) => void;
69
- cancelSearch: (viewRef: React.ElementRef<ComponentType>) => void;
70
- }
71
-
72
- export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
73
- supportedCommands: [
74
- 'blur',
75
- 'focus',
76
- 'clearText',
77
- 'toggleCancelButton',
78
- 'setText',
79
- 'cancelSearch',
80
- ],
81
- });
82
-
83
- export default codegenNativeComponent<NativeProps>('RNSSearchBar', {});
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { GestureProviderProps } from '../types';
3
- import { GHContext } from '../contexts';
4
- import ScreenGestureDetector from './ScreenGestureDetector';
5
-
6
- function GHWrapper(props: GestureProviderProps) {
7
- return <ScreenGestureDetector {...props} />;
8
- }
9
-
10
- export default function GestureDetectorProvider(props: {
11
- children: React.ReactNode;
12
- }) {
13
- return (
14
- <GHContext.Provider value={GHWrapper}>{props.children}</GHContext.Provider>
15
- );
16
- }
@@ -1,13 +0,0 @@
1
- type RNScreensTurboModuleType = {
2
- startTransition: (stackTag: number) => {
3
- topScreenTag: number;
4
- belowTopScreenTag: number;
5
- canStartTransition: boolean;
6
- };
7
- updateTransition: (stackTag: number, progress: number) => void;
8
- finishTransition: (stackTag: number, isCanceled: boolean) => void;
9
- disableSwipeBackForTopScreen: (stackTag: number) => void;
10
- };
11
-
12
- export const RNScreensTurboModule: RNScreensTurboModuleType = (global as any)
13
- .RNScreensTurboModule;