react-native-screens 3.19.0 → 3.21.0

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 (203) hide show
  1. package/README.md +2 -1
  2. package/RNScreens.podspec +1 -1
  3. package/android/build.gradle +24 -6
  4. package/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt +4 -0
  5. package/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt +7 -9
  6. package/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfigViewManager.kt +12 -4
  7. package/android/src/main/java/com/swmansion/rnscreens/SearchBarManager.kt +32 -8
  8. package/android/src/main/java/com/swmansion/rnscreens/SearchBarView.kt +36 -15
  9. package/android/src/main/java/com/swmansion/rnscreens/events/HeaderAttachedEvent.kt +24 -0
  10. package/android/src/main/java/com/swmansion/rnscreens/events/HeaderDetachedEvent.kt +24 -0
  11. package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarBlurEvent.kt +24 -0
  12. package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarChangeTextEvent.kt +29 -0
  13. package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarCloseEvent.kt +24 -0
  14. package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarFocusEvent.kt +24 -0
  15. package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarOpenEvent.kt +24 -0
  16. package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarSearchButtonPressEvent.kt +26 -0
  17. package/android/src/main/res/base/anim/rns_standard_accelerate_interpolator.xml +6 -0
  18. package/android/src/main/res/v33/anim-v33/rns_default_enter_in.xml +38 -0
  19. package/android/src/main/res/v33/anim-v33/rns_default_enter_out.xml +38 -0
  20. package/android/src/main/res/v33/anim-v33/rns_default_exit_in.xml +38 -0
  21. package/android/src/main/res/v33/anim-v33/rns_default_exit_out.xml +38 -0
  22. package/android/src/paper/java/com/facebook/react/viewmanagers/RNSScreenStackHeaderConfigManagerDelegate.java +3 -0
  23. package/android/src/paper/java/com/facebook/react/viewmanagers/RNSScreenStackHeaderConfigManagerInterface.java +1 -0
  24. package/common/cpp/react/renderer/components/rnscreens/RNSScreenState.h +1 -2
  25. package/ios/RCTImageComponentView+RNSScreenStackHeaderConfig.h +11 -0
  26. package/ios/RCTImageComponentView+RNSScreenStackHeaderConfig.mm +14 -0
  27. package/ios/RNSConvert.h +2 -2
  28. package/ios/RNSConvert.mm +2 -2
  29. package/ios/RNSFullWindowOverlay.h +5 -5
  30. package/ios/RNSFullWindowOverlay.mm +13 -13
  31. package/ios/RNSScreen.h +7 -6
  32. package/ios/RNSScreen.mm +35 -33
  33. package/ios/RNSScreenContainer.h +2 -2
  34. package/ios/RNSScreenContainer.mm +5 -5
  35. package/ios/RNSScreenNavigationContainer.mm +3 -3
  36. package/ios/RNSScreenStack.h +4 -4
  37. package/ios/RNSScreenStack.mm +62 -23
  38. package/ios/RNSScreenStackHeaderConfig.h +10 -3
  39. package/ios/RNSScreenStackHeaderConfig.mm +138 -81
  40. package/ios/RNSScreenStackHeaderSubview.h +5 -6
  41. package/ios/RNSScreenStackHeaderSubview.mm +20 -11
  42. package/ios/RNSScreenWindowTraits.mm +21 -2
  43. package/ios/RNSSearchBar.h +5 -4
  44. package/ios/RNSSearchBar.mm +87 -12
  45. package/ios/RNScreens.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  46. package/ios/RNScreens.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  47. package/ios/RNScreens.xcodeproj/project.xcworkspace/xcuserdata/wojciechlewicki.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  48. package/ios/RNScreens.xcodeproj/xcuserdata/wojciechlewicki.xcuserdatad/xcschemes/xcschememanagement.plist +19 -0
  49. package/lib/commonjs/TransitionProgressContext.js.map +1 -1
  50. package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js +0 -5
  51. package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
  52. package/lib/commonjs/fabric/ScreenContainerNativeComponent.js +0 -5
  53. package/lib/commonjs/fabric/ScreenContainerNativeComponent.js.map +1 -1
  54. package/lib/commonjs/fabric/ScreenNativeComponent.js +0 -5
  55. package/lib/commonjs/fabric/ScreenNativeComponent.js.map +1 -1
  56. package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js +0 -5
  57. package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
  58. package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -8
  59. package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
  60. package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -8
  61. package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
  62. package/lib/commonjs/fabric/ScreenStackNativeComponent.js +0 -5
  63. package/lib/commonjs/fabric/ScreenStackNativeComponent.js.map +1 -1
  64. package/lib/commonjs/fabric/SearchBarNativeComponent.js +7 -7
  65. package/lib/commonjs/fabric/SearchBarNativeComponent.js.map +1 -1
  66. package/lib/commonjs/index.js +1 -1
  67. package/lib/commonjs/index.js.map +1 -1
  68. package/lib/commonjs/index.native.js +53 -11
  69. package/lib/commonjs/index.native.js.map +1 -1
  70. package/lib/commonjs/native-stack/index.js.map +1 -1
  71. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +18 -16
  72. package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  73. package/lib/commonjs/native-stack/types.js.map +1 -1
  74. package/lib/commonjs/native-stack/utils/HeaderHeightContext.js.map +1 -1
  75. package/lib/commonjs/native-stack/utils/SafeAreaProviderCompat.js.map +1 -1
  76. package/lib/commonjs/native-stack/utils/getDefaultHeaderHeight.js.map +1 -1
  77. package/lib/commonjs/native-stack/utils/useBackPressSubscription.js.map +1 -1
  78. package/lib/commonjs/native-stack/utils/useHeaderHeight.js.map +1 -1
  79. package/lib/commonjs/native-stack/views/FontProcessor.js +1 -0
  80. package/lib/commonjs/native-stack/views/FontProcessor.js.map +1 -1
  81. package/lib/commonjs/native-stack/views/HeaderConfig.js +3 -1
  82. package/lib/commonjs/native-stack/views/HeaderConfig.js.map +1 -1
  83. package/lib/commonjs/native-stack/views/NativeStackView.js +14 -1
  84. package/lib/commonjs/native-stack/views/NativeStackView.js.map +1 -1
  85. package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
  86. package/lib/commonjs/reanimated/ReanimatedScreen.js.map +1 -1
  87. package/lib/commonjs/reanimated/ReanimatedScreenProvider.js +3 -1
  88. package/lib/commonjs/reanimated/ReanimatedScreenProvider.js.map +1 -1
  89. package/lib/commonjs/reanimated/ReanimatedTransitionProgressContext.js.map +1 -1
  90. package/lib/commonjs/reanimated/index.js.map +1 -1
  91. package/lib/commonjs/reanimated/useReanimatedTransitionProgress.js.map +1 -1
  92. package/lib/commonjs/types.js.map +1 -1
  93. package/lib/commonjs/useTransitionProgress.js.map +1 -1
  94. package/lib/commonjs/utils.js.map +1 -1
  95. package/lib/module/fabric/FullWindowOverlayNativeComponent.js +0 -5
  96. package/lib/module/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
  97. package/lib/module/fabric/ScreenContainerNativeComponent.js +0 -5
  98. package/lib/module/fabric/ScreenContainerNativeComponent.js.map +1 -1
  99. package/lib/module/fabric/ScreenNativeComponent.js +0 -5
  100. package/lib/module/fabric/ScreenNativeComponent.js.map +1 -1
  101. package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js +0 -5
  102. package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
  103. package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -6
  104. package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
  105. package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -6
  106. package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
  107. package/lib/module/fabric/ScreenStackNativeComponent.js +0 -5
  108. package/lib/module/fabric/ScreenStackNativeComponent.js.map +1 -1
  109. package/lib/module/fabric/SearchBarNativeComponent.js +4 -6
  110. package/lib/module/fabric/SearchBarNativeComponent.js.map +1 -1
  111. package/lib/module/index.js +1 -1
  112. package/lib/module/index.js.map +1 -1
  113. package/lib/module/index.native.js +54 -11
  114. package/lib/module/index.native.js.map +1 -1
  115. package/lib/module/native-stack/navigators/createNativeStackNavigator.js +18 -16
  116. package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  117. package/lib/module/native-stack/types.js.map +1 -1
  118. package/lib/module/native-stack/utils/SafeAreaProviderCompat.js.map +1 -1
  119. package/lib/module/native-stack/utils/getDefaultHeaderHeight.js.map +1 -1
  120. package/lib/module/native-stack/utils/useBackPressSubscription.js.map +1 -1
  121. package/lib/module/native-stack/utils/useHeaderHeight.js.map +1 -1
  122. package/lib/module/native-stack/views/FontProcessor.js +1 -0
  123. package/lib/module/native-stack/views/FontProcessor.js.map +1 -1
  124. package/lib/module/native-stack/views/HeaderConfig.js +3 -1
  125. package/lib/module/native-stack/views/HeaderConfig.js.map +1 -1
  126. package/lib/module/native-stack/views/NativeStackView.js +15 -1
  127. package/lib/module/native-stack/views/NativeStackView.js.map +1 -1
  128. package/lib/module/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
  129. package/lib/module/reanimated/ReanimatedScreen.js.map +1 -1
  130. package/lib/module/reanimated/ReanimatedScreenProvider.js +3 -1
  131. package/lib/module/reanimated/ReanimatedScreenProvider.js.map +1 -1
  132. package/lib/module/reanimated/useReanimatedTransitionProgress.js.map +1 -1
  133. package/lib/module/types.js.map +1 -1
  134. package/lib/module/useTransitionProgress.js.map +1 -1
  135. package/lib/module/utils.js.map +1 -1
  136. package/lib/typescript/fabric/FullWindowOverlayNativeComponent.d.ts +6 -0
  137. package/lib/typescript/fabric/ScreenContainerNativeComponent.d.ts +6 -0
  138. package/lib/typescript/fabric/ScreenNativeComponent.d.ts +62 -0
  139. package/lib/typescript/fabric/ScreenNavigationContainerNativeComponent.d.ts +6 -0
  140. package/lib/typescript/fabric/ScreenStackHeaderConfigNativeComponent.d.ts +34 -0
  141. package/lib/typescript/fabric/ScreenStackHeaderSubviewNativeComponent.d.ts +9 -0
  142. package/lib/typescript/fabric/ScreenStackNativeComponent.d.ts +9 -0
  143. package/lib/typescript/fabric/SearchBarNativeComponent.d.ts +46 -0
  144. package/lib/typescript/index.d.ts +2 -2
  145. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts +2 -2
  146. package/lib/typescript/native-stack/types.d.ts +55 -1
  147. package/lib/typescript/reanimated/ReanimatedNativeStackScreen.d.ts +1 -1
  148. package/lib/typescript/reanimated/ReanimatedScreen.d.ts +1 -1
  149. package/lib/typescript/types.d.ts +81 -2
  150. package/lib/typescript/useTransitionProgress.d.ts +3 -3
  151. package/native-stack/README.md +59 -1
  152. package/package.json +11 -14
  153. package/src/fabric/FullWindowOverlayNativeComponent.ts +6 -0
  154. package/src/fabric/ScreenContainerNativeComponent.ts +6 -0
  155. package/src/fabric/ScreenNativeComponent.ts +97 -0
  156. package/src/fabric/ScreenNavigationContainerNativeComponent.ts +9 -0
  157. package/src/fabric/ScreenStackHeaderConfigNativeComponent.ts +43 -0
  158. package/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts +20 -0
  159. package/src/fabric/ScreenStackNativeComponent.ts +12 -0
  160. package/src/fabric/SearchBarNativeComponent.ts +73 -0
  161. package/src/index.native.tsx +107 -14
  162. package/src/index.tsx +4 -3
  163. package/src/native-stack/navigators/createNativeStackNavigator.tsx +23 -19
  164. package/src/native-stack/types.tsx +55 -0
  165. package/src/native-stack/views/FontProcessor.tsx +1 -0
  166. package/src/native-stack/views/HeaderConfig.tsx +3 -1
  167. package/src/native-stack/views/NativeStackView.tsx +14 -2
  168. package/src/types.tsx +84 -2
  169. package/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt +0 -60
  170. package/createNativeStackNavigator/README.md +0 -522
  171. package/createNativeStackNavigator/package.json +0 -6
  172. package/lib/commonjs/createNativeStackNavigator.js +0 -374
  173. package/lib/commonjs/createNativeStackNavigator.js.map +0 -1
  174. package/lib/module/createNativeStackNavigator.js +0 -366
  175. package/lib/module/createNativeStackNavigator.js.map +0 -1
  176. package/lib/typescript/createNativeStackNavigator.d.ts +0 -51
  177. package/src/createNativeStackNavigator.tsx +0 -594
  178. package/src/fabric/FullWindowOverlayNativeComponent.js +0 -19
  179. package/src/fabric/ScreenContainerNativeComponent.js +0 -19
  180. package/src/fabric/ScreenNativeComponent.js +0 -104
  181. package/src/fabric/ScreenNavigationContainerNativeComponent.js +0 -19
  182. package/src/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -54
  183. package/src/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -31
  184. package/src/fabric/ScreenStackNativeComponent.js +0 -23
  185. package/src/fabric/SearchBarNativeComponent.js +0 -62
  186. /package/android/src/main/res/{anim → base/anim}/rns_default_enter_in.xml +0 -0
  187. /package/android/src/main/res/{anim → base/anim}/rns_default_enter_out.xml +0 -0
  188. /package/android/src/main/res/{anim → base/anim}/rns_default_exit_in.xml +0 -0
  189. /package/android/src/main/res/{anim → base/anim}/rns_default_exit_out.xml +0 -0
  190. /package/android/src/main/res/{anim → base/anim}/rns_fade_from_bottom.xml +0 -0
  191. /package/android/src/main/res/{anim → base/anim}/rns_fade_in.xml +0 -0
  192. /package/android/src/main/res/{anim → base/anim}/rns_fade_out.xml +0 -0
  193. /package/android/src/main/res/{anim → base/anim}/rns_fade_to_bottom.xml +0 -0
  194. /package/android/src/main/res/{anim → base/anim}/rns_no_animation_20.xml +0 -0
  195. /package/android/src/main/res/{anim → base/anim}/rns_no_animation_250.xml +0 -0
  196. /package/android/src/main/res/{anim → base/anim}/rns_no_animation_350.xml +0 -0
  197. /package/android/src/main/res/{anim → base/anim}/rns_no_animation_medium.xml +0 -0
  198. /package/android/src/main/res/{anim → base/anim}/rns_slide_in_from_bottom.xml +0 -0
  199. /package/android/src/main/res/{anim → base/anim}/rns_slide_in_from_left.xml +0 -0
  200. /package/android/src/main/res/{anim → base/anim}/rns_slide_in_from_right.xml +0 -0
  201. /package/android/src/main/res/{anim → base/anim}/rns_slide_out_to_bottom.xml +0 -0
  202. /package/android/src/main/res/{anim → base/anim}/rns_slide_out_to_left.xml +0 -0
  203. /package/android/src/main/res/{anim → base/anim}/rns_slide_out_to_right.xml +0 -0
@@ -1,104 +0,0 @@
1
- /**
2
- * @flow strict-local
3
- * @format
4
- */
5
- /* eslint-disable */
6
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
7
- import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
8
- import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
9
- import type { ColorValue } from 'react-native/Libraries/StyleSheet/StyleSheet';
10
- import type {
11
- BubblingEventHandler,
12
- WithDefault,
13
- Int32,
14
- } from 'react-native/Libraries/Types/CodegenTypes';
15
-
16
- type ScreenEvent = $ReadOnly<{||}>;
17
-
18
- type ScreenDismissedEvent = $ReadOnly<{|
19
- dismissCount: Int32,
20
- |}>;
21
-
22
- type TransitionProgressEvent = $ReadOnly<{|
23
- progress: Double,
24
- closing: Int32,
25
- goingForward: Int32,
26
- |}>;
27
-
28
- type GestureResponseDistanceType = $ReadOnly<{|
29
- start: Float,
30
- end: Float,
31
- top: Float,
32
- bottom: Float,
33
- |}>;
34
-
35
- type StackPresentation =
36
- | 'push'
37
- | 'modal'
38
- | 'transparentModal'
39
- | 'fullScreenModal'
40
- | 'formSheet'
41
- | 'containedModal'
42
- | 'containedTransparentModal';
43
-
44
- type StackAnimation =
45
- | 'default'
46
- | 'flip'
47
- | 'simple_push'
48
- | 'none'
49
- | 'fade'
50
- | 'slide_from_right'
51
- | 'slide_from_left'
52
- | 'slide_from_bottom'
53
- | 'fade_from_bottom';
54
-
55
- type SwipeDirection = 'vertical' | 'horizontal';
56
-
57
- type ReplaceAnimation = 'pop' | 'push';
58
-
59
- type SheetDetentTypes = 'large' | 'medium' | 'all';
60
-
61
- export type NativeProps = $ReadOnly<{|
62
- ...ViewProps,
63
- onAppear?: ?BubblingEventHandler<ScreenEvent>,
64
- onDisappear?: ?BubblingEventHandler<ScreenEvent>,
65
- onDismissed?: ?BubblingEventHandler<ScreenDismissedEvent>,
66
- onNativeDismissCancelled?: ?BubblingEventHandler<ScreenDismissedEvent>,
67
- onWillAppear?: ?BubblingEventHandler<ScreenEvent>,
68
- onWillDisappear?: ?BubblingEventHandler<ScreenEvent>,
69
- onTransitionProgress?: ?BubblingEventHandler<TransitionProgressEvent>,
70
- sheetAllowedDetents?: WithDefault<SheetDetentTypes, 'large'>,
71
- sheetLargestUndimmedDetent?: WithDefault<SheetDetentTypes, 'all'>,
72
- sheetGrabberVisible?: WithDefault<boolean, false>,
73
- sheetCornerRadius?: WithDefault<Float, -1.0>,
74
- sheetExpandsWhenScrolledToEdge?: WithDefault<boolean, false>,
75
- customAnimationOnSwipe?: boolean,
76
- fullScreenSwipeEnabled?: boolean,
77
- homeIndicatorHidden?: boolean,
78
- preventNativeDismiss?: boolean,
79
- gestureEnabled?: WithDefault<boolean, true>,
80
- statusBarColor?: ColorValue,
81
- statusBarHidden?: boolean,
82
- screenOrientation?: string,
83
- statusBarAnimation?: string,
84
- statusBarStyle?: string,
85
- statusBarTranslucent?: boolean,
86
- gestureResponseDistance?: GestureResponseDistanceType,
87
- stackPresentation?: WithDefault<StackPresentation, 'push'>,
88
- stackAnimation?: WithDefault<StackAnimation, 'default'>,
89
- transitionDuration?: WithDefault<Int32, 350>,
90
- replaceAnimation?: WithDefault<ReplaceAnimation, 'pop'>,
91
- swipeDirection?: WithDefault<SwipeDirection, 'horizontal'>,
92
- hideKeyboardOnSwipe?: boolean,
93
- activityState?: WithDefault<Float, -1.0>,
94
- navigationBarColor?: ColorValue,
95
- navigationBarHidden?: boolean,
96
- nativeBackButtonDismissalEnabled?: boolean,
97
- onHeaderBackButtonClicked?: ?BubblingEventHandler<ScreenEvent>,
98
- |}>;
99
-
100
- type ComponentType = HostComponent<NativeProps>;
101
-
102
- export default (codegenNativeComponent<NativeProps>('RNSScreen', {
103
- interfaceOnly: true,
104
- }): ComponentType);
@@ -1,19 +0,0 @@
1
- /**
2
- * @flow strict-local
3
- * @format
4
- */
5
- /* eslint-disable */
6
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
7
- import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
8
- import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
9
-
10
- type NativeProps = $ReadOnly<{|
11
- ...ViewProps,
12
- |}>;
13
-
14
- type ComponentType = HostComponent<NativeProps>;
15
-
16
- export default (codegenNativeComponent<NativeProps>(
17
- 'RNSScreenNavigationContainer',
18
- {}
19
- ): ComponentType);
@@ -1,54 +0,0 @@
1
- /**
2
- * @flow strict-local
3
- * @format
4
- */
5
- /* eslint-disable */
6
- import * as React from 'react';
7
-
8
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
9
- import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
10
- import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
11
- import type { ColorValue } from 'react-native/Libraries/StyleSheet/StyleSheet';
12
- import type {
13
- Int32,
14
- WithDefault,
15
- } from 'react-native/Libraries/Types/CodegenTypes';
16
-
17
- type DirectionType = 'rtl' | 'ltr';
18
-
19
- export type NativeProps = $ReadOnly<{|
20
- ...ViewProps,
21
- backgroundColor?: ColorValue,
22
- backTitle?: string,
23
- backTitleFontFamily?: string,
24
- backTitleFontSize?: Int32,
25
- color?: ColorValue,
26
- direction?: WithDefault<DirectionType, 'ltr'>,
27
- hidden?: boolean,
28
- hideShadow?: boolean,
29
- largeTitle?: boolean,
30
- largeTitleFontFamily?: string,
31
- largeTitleFontSize?: Int32,
32
- largeTitleFontWeight?: string,
33
- largeTitleBackgroundColor?: ColorValue,
34
- largeTitleHideShadow?: boolean,
35
- largeTitleColor?: ColorValue,
36
- translucent?: boolean,
37
- title?: string,
38
- titleFontFamily?: string,
39
- titleFontSize?: Int32,
40
- titleFontWeight?: string,
41
- titleColor?: ColorValue,
42
- disableBackButtonMenu?: boolean,
43
- hideBackButton?: boolean,
44
- backButtonInCustomView?: boolean,
45
- // TODO: implement this props on iOS
46
- topInsetEnabled?: boolean,
47
- |}>;
48
-
49
- type ComponentType = HostComponent<NativeProps>;
50
-
51
- export default (codegenNativeComponent<NativeProps>(
52
- 'RNSScreenStackHeaderConfig',
53
- {}
54
- ): ComponentType);
@@ -1,31 +0,0 @@
1
- /**
2
- * @flow strict-local
3
- * @format
4
- */
5
- /* eslint-disable */
6
- import * as React from 'react';
7
-
8
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
9
- import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
10
- import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
11
- import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
12
-
13
- export type HeaderSubviewTypes =
14
- | 'back'
15
- | 'right'
16
- | 'left'
17
- | 'title'
18
- | 'center'
19
- | 'searchBar';
20
-
21
- export type NativeProps = $ReadOnly<{|
22
- ...ViewProps,
23
- type?: WithDefault<HeaderSubviewTypes, 'left'>,
24
- |}>;
25
-
26
- type ComponentType = HostComponent<NativeProps>;
27
-
28
- export default (codegenNativeComponent<NativeProps>(
29
- 'RNSScreenStackHeaderSubview',
30
- {}
31
- ): ComponentType);
@@ -1,23 +0,0 @@
1
- /**
2
- * @flow strict-local
3
- * @format
4
- */
5
- /* eslint-disable */
6
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
7
- import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
8
- import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
9
- import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
10
-
11
- type FinishTransitioningEvent = $ReadOnly<{||}>;
12
-
13
- type NativeProps = $ReadOnly<{|
14
- ...ViewProps,
15
- onFinishTransitioning?: ?DirectEventHandler<FinishTransitioningEvent>,
16
- |}>;
17
-
18
- type ComponentType = HostComponent<NativeProps>;
19
-
20
- export default (codegenNativeComponent<NativeProps>(
21
- 'RNSScreenStack',
22
- {}
23
- ): ComponentType);
@@ -1,62 +0,0 @@
1
- /**
2
- * @flow strict-local
3
- * @format
4
- */
5
- /* eslint-disable */
6
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
7
- import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
8
- import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';
9
- import { ColorValue } from 'react-native/Libraries/StyleSheet/StyleSheet';
10
- import type {
11
- WithDefault,
12
- BubblingEventHandler,
13
- } from 'react-native/Libraries/Types/CodegenTypes';
14
- import { tintColor } from 'react-native/Libraries/Components/View/ReactNativeStyleAttributes';
15
-
16
- type SearchBarEvent = $ReadOnly<{||}>;
17
-
18
- type SearchButtonPressedEvent = $ReadOnly<{|
19
- text?: string,
20
- |}>;
21
-
22
- type ChangeTextEvent = $ReadOnly<{|
23
- text?: string,
24
- |}>;
25
-
26
- type AutoCapitalizeType = 'none' | 'words' | 'sentences' | 'characters';
27
-
28
- type NativeProps = $ReadOnly<{|
29
- ...ViewProps,
30
- onFocus?: ?BubblingEventHandler<SearchBarEvent>,
31
- onBlur?: ?BubblingEventHandler<SearchBarEvent>,
32
- onSearchButtonPress?: ?BubblingEventHandler<SearchButtonPressedEvent>,
33
- onCancelButtonPress?: ?BubblingEventHandler<SearchBarEvent>,
34
- onChangeText?: ?BubblingEventHandler<ChangeTextEvent>,
35
- hideWhenScrolling?: boolean,
36
- autoCapitalize?: WithDefault<AutoCapitalizeType, 'none'>,
37
- placeholder?: string,
38
- obscureBackground?: boolean,
39
- hideNavigationBar?: boolean,
40
- cancelButtonText?: string,
41
- // TODO: implement these on iOS
42
- barTintColor?: ColorValue,
43
- tintColor?: ColorValue,
44
- textColor?: ColorValue,
45
-
46
- // Android only
47
- disableBackButtonOverride?: boolean,
48
- // TODO: consider creating enum here
49
- inputType?: string,
50
- onClose?: ?BubblingEventHandler<SearchBarEvent>,
51
- onOpen?: ?BubblingEventHandler<SearchBarEvent>,
52
- hintTextColor?: ColorValue,
53
- headerIconColor?: ColorValue,
54
- shouldShowHintSearchIcon?: WithDefault<boolean, true>,
55
- |}>;
56
-
57
- type ComponentType = HostComponent<NativeProps>;
58
-
59
- export default (codegenNativeComponent<NativeProps>(
60
- 'RNSSearchBar',
61
- {}
62
- ): ComponentType);