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.
- package/README.md +2 -1
- package/RNScreens.podspec +1 -1
- package/android/build.gradle +24 -6
- package/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt +4 -0
- package/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt +7 -9
- package/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfigViewManager.kt +12 -4
- package/android/src/main/java/com/swmansion/rnscreens/SearchBarManager.kt +32 -8
- package/android/src/main/java/com/swmansion/rnscreens/SearchBarView.kt +36 -15
- package/android/src/main/java/com/swmansion/rnscreens/events/HeaderAttachedEvent.kt +24 -0
- package/android/src/main/java/com/swmansion/rnscreens/events/HeaderDetachedEvent.kt +24 -0
- package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarBlurEvent.kt +24 -0
- package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarChangeTextEvent.kt +29 -0
- package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarCloseEvent.kt +24 -0
- package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarFocusEvent.kt +24 -0
- package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarOpenEvent.kt +24 -0
- package/android/src/main/java/com/swmansion/rnscreens/events/SearchBarSearchButtonPressEvent.kt +26 -0
- package/android/src/main/res/base/anim/rns_standard_accelerate_interpolator.xml +6 -0
- package/android/src/main/res/v33/anim-v33/rns_default_enter_in.xml +38 -0
- package/android/src/main/res/v33/anim-v33/rns_default_enter_out.xml +38 -0
- package/android/src/main/res/v33/anim-v33/rns_default_exit_in.xml +38 -0
- package/android/src/main/res/v33/anim-v33/rns_default_exit_out.xml +38 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/RNSScreenStackHeaderConfigManagerDelegate.java +3 -0
- package/android/src/paper/java/com/facebook/react/viewmanagers/RNSScreenStackHeaderConfigManagerInterface.java +1 -0
- package/common/cpp/react/renderer/components/rnscreens/RNSScreenState.h +1 -2
- package/ios/RCTImageComponentView+RNSScreenStackHeaderConfig.h +11 -0
- package/ios/RCTImageComponentView+RNSScreenStackHeaderConfig.mm +14 -0
- package/ios/RNSConvert.h +2 -2
- package/ios/RNSConvert.mm +2 -2
- package/ios/RNSFullWindowOverlay.h +5 -5
- package/ios/RNSFullWindowOverlay.mm +13 -13
- package/ios/RNSScreen.h +7 -6
- package/ios/RNSScreen.mm +35 -33
- package/ios/RNSScreenContainer.h +2 -2
- package/ios/RNSScreenContainer.mm +5 -5
- package/ios/RNSScreenNavigationContainer.mm +3 -3
- package/ios/RNSScreenStack.h +4 -4
- package/ios/RNSScreenStack.mm +62 -23
- package/ios/RNSScreenStackHeaderConfig.h +10 -3
- package/ios/RNSScreenStackHeaderConfig.mm +138 -81
- package/ios/RNSScreenStackHeaderSubview.h +5 -6
- package/ios/RNSScreenStackHeaderSubview.mm +20 -11
- package/ios/RNSScreenWindowTraits.mm +21 -2
- package/ios/RNSSearchBar.h +5 -4
- package/ios/RNSSearchBar.mm +87 -12
- package/ios/RNScreens.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/RNScreens.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/RNScreens.xcodeproj/project.xcworkspace/xcuserdata/wojciechlewicki.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/RNScreens.xcodeproj/xcuserdata/wojciechlewicki.xcuserdatad/xcschemes/xcschememanagement.plist +19 -0
- package/lib/commonjs/TransitionProgressContext.js.map +1 -1
- package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js +0 -5
- package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenContainerNativeComponent.js +0 -5
- package/lib/commonjs/fabric/ScreenContainerNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenNativeComponent.js +0 -5
- package/lib/commonjs/fabric/ScreenNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js +0 -5
- package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -8
- package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -8
- package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenStackNativeComponent.js +0 -5
- package/lib/commonjs/fabric/ScreenStackNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/SearchBarNativeComponent.js +7 -7
- package/lib/commonjs/fabric/SearchBarNativeComponent.js.map +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.native.js +53 -11
- package/lib/commonjs/index.native.js.map +1 -1
- package/lib/commonjs/native-stack/index.js.map +1 -1
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +18 -16
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/commonjs/native-stack/types.js.map +1 -1
- package/lib/commonjs/native-stack/utils/HeaderHeightContext.js.map +1 -1
- package/lib/commonjs/native-stack/utils/SafeAreaProviderCompat.js.map +1 -1
- package/lib/commonjs/native-stack/utils/getDefaultHeaderHeight.js.map +1 -1
- package/lib/commonjs/native-stack/utils/useBackPressSubscription.js.map +1 -1
- package/lib/commonjs/native-stack/utils/useHeaderHeight.js.map +1 -1
- package/lib/commonjs/native-stack/views/FontProcessor.js +1 -0
- package/lib/commonjs/native-stack/views/FontProcessor.js.map +1 -1
- package/lib/commonjs/native-stack/views/HeaderConfig.js +3 -1
- package/lib/commonjs/native-stack/views/HeaderConfig.js.map +1 -1
- package/lib/commonjs/native-stack/views/NativeStackView.js +14 -1
- package/lib/commonjs/native-stack/views/NativeStackView.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedScreen.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedScreenProvider.js +3 -1
- package/lib/commonjs/reanimated/ReanimatedScreenProvider.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedTransitionProgressContext.js.map +1 -1
- package/lib/commonjs/reanimated/index.js.map +1 -1
- package/lib/commonjs/reanimated/useReanimatedTransitionProgress.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/useTransitionProgress.js.map +1 -1
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/fabric/FullWindowOverlayNativeComponent.js +0 -5
- package/lib/module/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenContainerNativeComponent.js +0 -5
- package/lib/module/fabric/ScreenContainerNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenNativeComponent.js +0 -5
- package/lib/module/fabric/ScreenNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js +0 -5
- package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -6
- package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -6
- package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenStackNativeComponent.js +0 -5
- package/lib/module/fabric/ScreenStackNativeComponent.js.map +1 -1
- package/lib/module/fabric/SearchBarNativeComponent.js +4 -6
- package/lib/module/fabric/SearchBarNativeComponent.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.native.js +54 -11
- package/lib/module/index.native.js.map +1 -1
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js +18 -16
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/module/native-stack/types.js.map +1 -1
- package/lib/module/native-stack/utils/SafeAreaProviderCompat.js.map +1 -1
- package/lib/module/native-stack/utils/getDefaultHeaderHeight.js.map +1 -1
- package/lib/module/native-stack/utils/useBackPressSubscription.js.map +1 -1
- package/lib/module/native-stack/utils/useHeaderHeight.js.map +1 -1
- package/lib/module/native-stack/views/FontProcessor.js +1 -0
- package/lib/module/native-stack/views/FontProcessor.js.map +1 -1
- package/lib/module/native-stack/views/HeaderConfig.js +3 -1
- package/lib/module/native-stack/views/HeaderConfig.js.map +1 -1
- package/lib/module/native-stack/views/NativeStackView.js +15 -1
- package/lib/module/native-stack/views/NativeStackView.js.map +1 -1
- package/lib/module/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
- package/lib/module/reanimated/ReanimatedScreen.js.map +1 -1
- package/lib/module/reanimated/ReanimatedScreenProvider.js +3 -1
- package/lib/module/reanimated/ReanimatedScreenProvider.js.map +1 -1
- package/lib/module/reanimated/useReanimatedTransitionProgress.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/useTransitionProgress.js.map +1 -1
- package/lib/module/utils.js.map +1 -1
- package/lib/typescript/fabric/FullWindowOverlayNativeComponent.d.ts +6 -0
- package/lib/typescript/fabric/ScreenContainerNativeComponent.d.ts +6 -0
- package/lib/typescript/fabric/ScreenNativeComponent.d.ts +62 -0
- package/lib/typescript/fabric/ScreenNavigationContainerNativeComponent.d.ts +6 -0
- package/lib/typescript/fabric/ScreenStackHeaderConfigNativeComponent.d.ts +34 -0
- package/lib/typescript/fabric/ScreenStackHeaderSubviewNativeComponent.d.ts +9 -0
- package/lib/typescript/fabric/ScreenStackNativeComponent.d.ts +9 -0
- package/lib/typescript/fabric/SearchBarNativeComponent.d.ts +46 -0
- package/lib/typescript/index.d.ts +2 -2
- package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts +2 -2
- package/lib/typescript/native-stack/types.d.ts +55 -1
- package/lib/typescript/reanimated/ReanimatedNativeStackScreen.d.ts +1 -1
- package/lib/typescript/reanimated/ReanimatedScreen.d.ts +1 -1
- package/lib/typescript/types.d.ts +81 -2
- package/lib/typescript/useTransitionProgress.d.ts +3 -3
- package/native-stack/README.md +59 -1
- package/package.json +11 -14
- package/src/fabric/FullWindowOverlayNativeComponent.ts +6 -0
- package/src/fabric/ScreenContainerNativeComponent.ts +6 -0
- package/src/fabric/ScreenNativeComponent.ts +97 -0
- package/src/fabric/ScreenNavigationContainerNativeComponent.ts +9 -0
- package/src/fabric/ScreenStackHeaderConfigNativeComponent.ts +43 -0
- package/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts +20 -0
- package/src/fabric/ScreenStackNativeComponent.ts +12 -0
- package/src/fabric/SearchBarNativeComponent.ts +73 -0
- package/src/index.native.tsx +107 -14
- package/src/index.tsx +4 -3
- package/src/native-stack/navigators/createNativeStackNavigator.tsx +23 -19
- package/src/native-stack/types.tsx +55 -0
- package/src/native-stack/views/FontProcessor.tsx +1 -0
- package/src/native-stack/views/HeaderConfig.tsx +3 -1
- package/src/native-stack/views/NativeStackView.tsx +14 -2
- package/src/types.tsx +84 -2
- package/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt +0 -60
- package/createNativeStackNavigator/README.md +0 -522
- package/createNativeStackNavigator/package.json +0 -6
- package/lib/commonjs/createNativeStackNavigator.js +0 -374
- package/lib/commonjs/createNativeStackNavigator.js.map +0 -1
- package/lib/module/createNativeStackNavigator.js +0 -366
- package/lib/module/createNativeStackNavigator.js.map +0 -1
- package/lib/typescript/createNativeStackNavigator.d.ts +0 -51
- package/src/createNativeStackNavigator.tsx +0 -594
- package/src/fabric/FullWindowOverlayNativeComponent.js +0 -19
- package/src/fabric/ScreenContainerNativeComponent.js +0 -19
- package/src/fabric/ScreenNativeComponent.js +0 -104
- package/src/fabric/ScreenNavigationContainerNativeComponent.js +0 -19
- package/src/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -54
- package/src/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -31
- package/src/fabric/ScreenStackNativeComponent.js +0 -23
- package/src/fabric/SearchBarNativeComponent.js +0 -62
- /package/android/src/main/res/{anim → base/anim}/rns_default_enter_in.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_default_enter_out.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_default_exit_in.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_default_exit_out.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_fade_from_bottom.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_fade_in.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_fade_out.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_fade_to_bottom.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_no_animation_20.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_no_animation_250.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_no_animation_350.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_no_animation_medium.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_slide_in_from_bottom.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_slide_in_from_left.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_slide_in_from_right.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_slide_out_to_bottom.xml +0 -0
- /package/android/src/main/res/{anim → base/anim}/rns_slide_out_to_left.xml +0 -0
- /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);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|