react-native-screens 4.19.0-nightly-20251207-910978b9a → 4.19.0-nightly-20251209-fb49fca61
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 -0
- package/ios/RNSScreenStack.mm +2 -1
- package/ios/RNSScreenStackHeaderConfig.mm +5 -7
- package/ios/RNSScreenStackHeaderSubview.mm +65 -3
- package/ios/bottom-tabs/host/RNSTabBarController.mm +1 -2
- package/ios/bottom-tabs/screen/RNSBottomTabsScreenComponentView.mm +7 -0
- package/lib/commonjs/components/ScreenStackItem.js +2 -2
- package/lib/commonjs/components/ScreenStackItem.js.map +1 -1
- package/lib/commonjs/components/SearchBar.js.map +1 -1
- package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js +2 -4
- package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ModalScreenNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ModalScreenNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenContainerNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ScreenContainerNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenContentWrapperNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ScreenContentWrapperNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenFooterNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ScreenFooterNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ScreenNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/ScreenStackNativeComponent.js +2 -4
- package/lib/commonjs/fabric/ScreenStackNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/SearchBarNativeComponent.js +5 -6
- package/lib/commonjs/fabric/SearchBarNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.js +2 -4
- package/lib/commonjs/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.js +2 -4
- package/lib/commonjs/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/bottom-tabs/BottomTabsNativeComponent.js +2 -4
- package/lib/commonjs/fabric/bottom-tabs/BottomTabsNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/bottom-tabs/BottomTabsScreenNativeComponent.js +2 -4
- package/lib/commonjs/fabric/bottom-tabs/BottomTabsScreenNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/gamma/ScreenStackHostNativeComponent.js +2 -4
- package/lib/commonjs/fabric/gamma/ScreenStackHostNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/gamma/SplitViewHostNativeComponent.js +2 -4
- package/lib/commonjs/fabric/gamma/SplitViewHostNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/gamma/SplitViewScreenNativeComponent.js +2 -4
- package/lib/commonjs/fabric/gamma/SplitViewScreenNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/gamma/StackScreenNativeComponent.js +2 -4
- package/lib/commonjs/fabric/gamma/StackScreenNativeComponent.js.map +1 -1
- package/lib/commonjs/fabric/safe-area/SafeAreaViewNativeComponent.js +2 -4
- package/lib/commonjs/fabric/safe-area/SafeAreaViewNativeComponent.js.map +1 -1
- package/lib/module/components/ScreenStackItem.js +2 -2
- package/lib/module/components/ScreenStackItem.js.map +1 -1
- package/lib/module/components/SearchBar.js.map +1 -1
- package/lib/module/fabric/FullWindowOverlayNativeComponent.js +1 -2
- package/lib/module/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
- package/lib/module/fabric/ModalScreenNativeComponent.js +1 -2
- package/lib/module/fabric/ModalScreenNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenContainerNativeComponent.js +1 -2
- package/lib/module/fabric/ScreenContainerNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenContentWrapperNativeComponent.js +1 -2
- package/lib/module/fabric/ScreenContentWrapperNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenFooterNativeComponent.js +1 -2
- package/lib/module/fabric/ScreenFooterNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenNativeComponent.js +1 -2
- package/lib/module/fabric/ScreenNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js +1 -2
- package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js +1 -2
- package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js +1 -2
- package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
- package/lib/module/fabric/ScreenStackNativeComponent.js +1 -2
- package/lib/module/fabric/ScreenStackNativeComponent.js.map +1 -1
- package/lib/module/fabric/SearchBarNativeComponent.js +4 -3
- package/lib/module/fabric/SearchBarNativeComponent.js.map +1 -1
- package/lib/module/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.js +1 -2
- package/lib/module/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.js.map +1 -1
- package/lib/module/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.js +1 -2
- package/lib/module/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.js.map +1 -1
- package/lib/module/fabric/bottom-tabs/BottomTabsNativeComponent.js +1 -2
- package/lib/module/fabric/bottom-tabs/BottomTabsNativeComponent.js.map +1 -1
- package/lib/module/fabric/bottom-tabs/BottomTabsScreenNativeComponent.js +1 -2
- package/lib/module/fabric/bottom-tabs/BottomTabsScreenNativeComponent.js.map +1 -1
- package/lib/module/fabric/gamma/ScreenStackHostNativeComponent.js +1 -2
- package/lib/module/fabric/gamma/ScreenStackHostNativeComponent.js.map +1 -1
- package/lib/module/fabric/gamma/SplitViewHostNativeComponent.js +1 -2
- package/lib/module/fabric/gamma/SplitViewHostNativeComponent.js.map +1 -1
- package/lib/module/fabric/gamma/SplitViewScreenNativeComponent.js +1 -2
- package/lib/module/fabric/gamma/SplitViewScreenNativeComponent.js.map +1 -1
- package/lib/module/fabric/gamma/StackScreenNativeComponent.js +1 -2
- package/lib/module/fabric/gamma/StackScreenNativeComponent.js.map +1 -1
- package/lib/module/fabric/safe-area/SafeAreaViewNativeComponent.js +1 -2
- package/lib/module/fabric/safe-area/SafeAreaViewNativeComponent.js.map +1 -1
- package/lib/typescript/components/bottom-tabs/BottomTabs.types.d.ts +0 -3
- package/lib/typescript/components/bottom-tabs/BottomTabs.types.d.ts.map +1 -1
- package/lib/typescript/components/bottom-tabs/BottomTabsScreen.types.d.ts +2 -0
- package/lib/typescript/components/bottom-tabs/BottomTabsScreen.types.d.ts.map +1 -1
- package/lib/typescript/fabric/FullWindowOverlayNativeComponent.d.ts +3 -4
- package/lib/typescript/fabric/FullWindowOverlayNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ModalScreenNativeComponent.d.ts +41 -42
- package/lib/typescript/fabric/ModalScreenNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ScreenContainerNativeComponent.d.ts +1 -1
- package/lib/typescript/fabric/ScreenContainerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ScreenContentWrapperNativeComponent.d.ts +1 -1
- package/lib/typescript/fabric/ScreenContentWrapperNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ScreenFooterNativeComponent.d.ts +1 -1
- package/lib/typescript/fabric/ScreenFooterNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ScreenNativeComponent.d.ts +46 -47
- package/lib/typescript/fabric/ScreenNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ScreenNavigationContainerNativeComponent.d.ts +1 -1
- package/lib/typescript/fabric/ScreenNavigationContainerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ScreenStackHeaderConfigNativeComponent.d.ts +17 -18
- package/lib/typescript/fabric/ScreenStackHeaderConfigNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ScreenStackHeaderSubviewNativeComponent.d.ts +4 -5
- package/lib/typescript/fabric/ScreenStackHeaderSubviewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/ScreenStackNativeComponent.d.ts +3 -4
- package/lib/typescript/fabric/ScreenStackNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/SearchBarNativeComponent.d.ts +17 -18
- package/lib/typescript/fabric/SearchBarNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.d.ts +3 -4
- package/lib/typescript/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.d.ts +3 -4
- package/lib/typescript/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/bottom-tabs/BottomTabsNativeComponent.d.ts +11 -12
- package/lib/typescript/fabric/bottom-tabs/BottomTabsNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/bottom-tabs/BottomTabsScreenNativeComponent.d.ts +25 -26
- package/lib/typescript/fabric/bottom-tabs/BottomTabsScreenNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/gamma/ScreenStackHostNativeComponent.d.ts +1 -1
- package/lib/typescript/fabric/gamma/ScreenStackHostNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/gamma/SplitViewHostNativeComponent.d.ts +26 -27
- package/lib/typescript/fabric/gamma/SplitViewHostNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/gamma/SplitViewScreenNativeComponent.d.ts +7 -8
- package/lib/typescript/fabric/gamma/SplitViewScreenNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/gamma/StackScreenNativeComponent.d.ts +7 -8
- package/lib/typescript/fabric/gamma/StackScreenNativeComponent.d.ts.map +1 -1
- package/lib/typescript/fabric/safe-area/SafeAreaViewNativeComponent.d.ts +3 -4
- package/lib/typescript/fabric/safe-area/SafeAreaViewNativeComponent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ScreenStackItem.tsx +2 -2
- package/src/components/SearchBar.tsx +6 -6
- package/src/components/bottom-tabs/BottomTabs.types.ts +0 -3
- package/src/components/bottom-tabs/BottomTabsScreen.types.ts +2 -0
- package/src/fabric/FullWindowOverlayNativeComponent.ts +3 -5
- package/src/fabric/ModalScreenNativeComponent.ts +41 -49
- package/src/fabric/ScreenContainerNativeComponent.ts +1 -2
- package/src/fabric/ScreenContentWrapperNativeComponent.ts +1 -2
- package/src/fabric/ScreenFooterNativeComponent.ts +1 -2
- package/src/fabric/ScreenNativeComponent.ts +46 -54
- package/src/fabric/ScreenNavigationContainerNativeComponent.ts +1 -2
- package/src/fabric/ScreenStackHeaderConfigNativeComponent.ts +17 -24
- package/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts +4 -6
- package/src/fabric/ScreenStackNativeComponent.ts +3 -5
- package/src/fabric/SearchBarNativeComponent.ts +22 -22
- package/src/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.ts +3 -5
- package/src/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.ts +3 -5
- package/src/fabric/bottom-tabs/BottomTabsNativeComponent.ts +11 -17
- package/src/fabric/bottom-tabs/BottomTabsScreenNativeComponent.ts +28 -31
- package/src/fabric/gamma/ScreenStackHostNativeComponent.ts +1 -2
- package/src/fabric/gamma/SplitViewHostNativeComponent.ts +26 -32
- package/src/fabric/gamma/SplitViewScreenNativeComponent.ts +7 -12
- package/src/fabric/gamma/StackScreenNativeComponent.ts +7 -12
- package/src/fabric/safe-area/SafeAreaViewNativeComponent.ts +3 -5
|
@@ -1,43 +1,35 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { ViewProps, ColorValue } from 'react-native';
|
|
6
|
-
import type {
|
|
7
|
-
DirectEventHandler,
|
|
8
|
-
WithDefault,
|
|
9
|
-
Int32,
|
|
10
|
-
Float,
|
|
11
|
-
Double,
|
|
12
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { CodegenTypes as CT, ViewProps, ColorValue } from 'react-native';
|
|
13
5
|
|
|
14
6
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
15
7
|
type ScreenEvent = Readonly<{}>;
|
|
16
8
|
|
|
17
9
|
type ScreenDismissedEvent = Readonly<{
|
|
18
|
-
dismissCount: Int32;
|
|
10
|
+
dismissCount: CT.Int32;
|
|
19
11
|
}>;
|
|
20
12
|
|
|
21
13
|
type TransitionProgressEvent = Readonly<{
|
|
22
|
-
progress: Double;
|
|
23
|
-
closing: Int32;
|
|
24
|
-
goingForward: Int32;
|
|
14
|
+
progress: CT.Double;
|
|
15
|
+
closing: CT.Int32;
|
|
16
|
+
goingForward: CT.Int32;
|
|
25
17
|
}>;
|
|
26
18
|
|
|
27
19
|
type HeaderHeightChangeEvent = Readonly<{
|
|
28
|
-
headerHeight: Double;
|
|
20
|
+
headerHeight: CT.Double;
|
|
29
21
|
}>;
|
|
30
22
|
|
|
31
23
|
type SheetDetentChangedEvent = Readonly<{
|
|
32
|
-
index: Int32;
|
|
24
|
+
index: CT.Int32;
|
|
33
25
|
isStable: boolean;
|
|
34
26
|
}>;
|
|
35
27
|
|
|
36
28
|
type GestureResponseDistanceType = Readonly<{
|
|
37
|
-
start: Float;
|
|
38
|
-
end: Float;
|
|
39
|
-
top: Float;
|
|
40
|
-
bottom: Float;
|
|
29
|
+
start: CT.Float;
|
|
30
|
+
end: CT.Float;
|
|
31
|
+
top: CT.Float;
|
|
32
|
+
bottom: CT.Float;
|
|
41
33
|
}>;
|
|
42
34
|
|
|
43
35
|
type StackPresentation =
|
|
@@ -70,32 +62,32 @@ type ReplaceAnimation = 'pop' | 'push';
|
|
|
70
62
|
type OptionalBoolean = 'undefined' | 'false' | 'true';
|
|
71
63
|
|
|
72
64
|
export interface NativeProps extends ViewProps {
|
|
73
|
-
onAppear?: DirectEventHandler<ScreenEvent>;
|
|
74
|
-
onDisappear?: DirectEventHandler<ScreenEvent>;
|
|
75
|
-
onDismissed?: DirectEventHandler<ScreenDismissedEvent>;
|
|
76
|
-
onNativeDismissCancelled?: DirectEventHandler<ScreenDismissedEvent>;
|
|
77
|
-
onWillAppear?: DirectEventHandler<ScreenEvent>;
|
|
78
|
-
onWillDisappear?: DirectEventHandler<ScreenEvent>;
|
|
79
|
-
onHeaderHeightChange?: DirectEventHandler<HeaderHeightChangeEvent>;
|
|
80
|
-
onTransitionProgress?: DirectEventHandler<TransitionProgressEvent>;
|
|
81
|
-
onGestureCancel?: DirectEventHandler<ScreenEvent>;
|
|
82
|
-
onHeaderBackButtonClicked?: DirectEventHandler<ScreenEvent>;
|
|
83
|
-
onSheetDetentChanged?: DirectEventHandler<SheetDetentChangedEvent>;
|
|
84
|
-
screenId?: WithDefault<string, ''>;
|
|
65
|
+
onAppear?: CT.DirectEventHandler<ScreenEvent>;
|
|
66
|
+
onDisappear?: CT.DirectEventHandler<ScreenEvent>;
|
|
67
|
+
onDismissed?: CT.DirectEventHandler<ScreenDismissedEvent>;
|
|
68
|
+
onNativeDismissCancelled?: CT.DirectEventHandler<ScreenDismissedEvent>;
|
|
69
|
+
onWillAppear?: CT.DirectEventHandler<ScreenEvent>;
|
|
70
|
+
onWillDisappear?: CT.DirectEventHandler<ScreenEvent>;
|
|
71
|
+
onHeaderHeightChange?: CT.DirectEventHandler<HeaderHeightChangeEvent>;
|
|
72
|
+
onTransitionProgress?: CT.DirectEventHandler<TransitionProgressEvent>;
|
|
73
|
+
onGestureCancel?: CT.DirectEventHandler<ScreenEvent>;
|
|
74
|
+
onHeaderBackButtonClicked?: CT.DirectEventHandler<ScreenEvent>;
|
|
75
|
+
onSheetDetentChanged?: CT.DirectEventHandler<SheetDetentChangedEvent>;
|
|
76
|
+
screenId?: CT.WithDefault<string, ''>;
|
|
85
77
|
sheetAllowedDetents?: number[];
|
|
86
|
-
sheetLargestUndimmedDetent?: WithDefault<Int32, -1>;
|
|
87
|
-
sheetGrabberVisible?: WithDefault<boolean, false>;
|
|
88
|
-
sheetCornerRadius?: WithDefault<Float, -1.0>;
|
|
89
|
-
sheetExpandsWhenScrolledToEdge?: WithDefault<boolean, false>;
|
|
90
|
-
sheetInitialDetent?: WithDefault<Int32, 0>;
|
|
91
|
-
sheetElevation?: WithDefault<Int32, 24>;
|
|
92
|
-
sheetShouldOverflowTopInset?: WithDefault<boolean, false>;
|
|
78
|
+
sheetLargestUndimmedDetent?: CT.WithDefault<CT.Int32, -1>;
|
|
79
|
+
sheetGrabberVisible?: CT.WithDefault<boolean, false>;
|
|
80
|
+
sheetCornerRadius?: CT.WithDefault<CT.Float, -1.0>;
|
|
81
|
+
sheetExpandsWhenScrolledToEdge?: CT.WithDefault<boolean, false>;
|
|
82
|
+
sheetInitialDetent?: CT.WithDefault<CT.Int32, 0>;
|
|
83
|
+
sheetElevation?: CT.WithDefault<CT.Int32, 24>;
|
|
84
|
+
sheetShouldOverflowTopInset?: CT.WithDefault<boolean, false>;
|
|
93
85
|
customAnimationOnSwipe?: boolean;
|
|
94
|
-
fullScreenSwipeEnabled?: WithDefault<OptionalBoolean, 'undefined'>;
|
|
95
|
-
fullScreenSwipeShadowEnabled?: WithDefault<boolean, true>;
|
|
86
|
+
fullScreenSwipeEnabled?: CT.WithDefault<OptionalBoolean, 'undefined'>;
|
|
87
|
+
fullScreenSwipeShadowEnabled?: CT.WithDefault<boolean, true>;
|
|
96
88
|
homeIndicatorHidden?: boolean;
|
|
97
89
|
preventNativeDismiss?: boolean;
|
|
98
|
-
gestureEnabled?: WithDefault<boolean, true>;
|
|
90
|
+
gestureEnabled?: CT.WithDefault<boolean, true>;
|
|
99
91
|
statusBarColor?: ColorValue;
|
|
100
92
|
statusBarHidden?: boolean;
|
|
101
93
|
screenOrientation?: string;
|
|
@@ -103,18 +95,18 @@ export interface NativeProps extends ViewProps {
|
|
|
103
95
|
statusBarStyle?: string;
|
|
104
96
|
statusBarTranslucent?: boolean;
|
|
105
97
|
gestureResponseDistance?: GestureResponseDistanceType;
|
|
106
|
-
stackPresentation?: WithDefault<StackPresentation, 'push'>;
|
|
107
|
-
stackAnimation?: WithDefault<StackAnimation, 'default'>;
|
|
108
|
-
transitionDuration?: WithDefault<Int32, 500>;
|
|
109
|
-
replaceAnimation?: WithDefault<ReplaceAnimation, 'pop'>;
|
|
110
|
-
swipeDirection?: WithDefault<SwipeDirection, 'horizontal'>;
|
|
98
|
+
stackPresentation?: CT.WithDefault<StackPresentation, 'push'>;
|
|
99
|
+
stackAnimation?: CT.WithDefault<StackAnimation, 'default'>;
|
|
100
|
+
transitionDuration?: CT.WithDefault<CT.Int32, 500>;
|
|
101
|
+
replaceAnimation?: CT.WithDefault<ReplaceAnimation, 'pop'>;
|
|
102
|
+
swipeDirection?: CT.WithDefault<SwipeDirection, 'horizontal'>;
|
|
111
103
|
hideKeyboardOnSwipe?: boolean;
|
|
112
|
-
activityState?: WithDefault<Float, -1.0>;
|
|
104
|
+
activityState?: CT.WithDefault<CT.Float, -1.0>;
|
|
113
105
|
navigationBarColor?: ColorValue;
|
|
114
106
|
navigationBarTranslucent?: boolean;
|
|
115
107
|
navigationBarHidden?: boolean;
|
|
116
108
|
nativeBackButtonDismissalEnabled?: boolean;
|
|
117
|
-
synchronousShadowStateUpdatesEnabled?: WithDefault<boolean, false>;
|
|
109
|
+
synchronousShadowStateUpdatesEnabled?: CT.WithDefault<boolean, false>;
|
|
118
110
|
}
|
|
119
111
|
|
|
120
112
|
export default codegenNativeComponent<NativeProps>('RNSModalScreen', {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
5
4
|
import type { ViewProps } from 'react-native';
|
|
6
5
|
|
|
7
6
|
interface NativeProps extends ViewProps {}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
1
|
+
import { codegenNativeComponent } from 'react-native';
|
|
3
2
|
import type { ViewProps } from 'react-native';
|
|
4
3
|
|
|
5
4
|
export interface NativeProps extends ViewProps {}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
1
|
+
import { codegenNativeComponent } from 'react-native';
|
|
3
2
|
import type { ViewProps } from 'react-native';
|
|
4
3
|
|
|
5
4
|
export interface NativeProps extends ViewProps {}
|
|
@@ -1,43 +1,35 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { ViewProps, ColorValue } from 'react-native';
|
|
6
|
-
import type {
|
|
7
|
-
DirectEventHandler,
|
|
8
|
-
WithDefault,
|
|
9
|
-
Int32,
|
|
10
|
-
Float,
|
|
11
|
-
Double,
|
|
12
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { CodegenTypes as CT, ViewProps, ColorValue } from 'react-native';
|
|
13
5
|
|
|
14
6
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
15
7
|
type ScreenEvent = Readonly<{}>;
|
|
16
8
|
|
|
17
9
|
type ScreenDismissedEvent = Readonly<{
|
|
18
|
-
dismissCount: Int32;
|
|
10
|
+
dismissCount: CT.Int32;
|
|
19
11
|
}>;
|
|
20
12
|
|
|
21
13
|
type TransitionProgressEvent = Readonly<{
|
|
22
|
-
progress: Double;
|
|
23
|
-
closing: Int32;
|
|
24
|
-
goingForward: Int32;
|
|
14
|
+
progress: CT.Double;
|
|
15
|
+
closing: CT.Int32;
|
|
16
|
+
goingForward: CT.Int32;
|
|
25
17
|
}>;
|
|
26
18
|
|
|
27
19
|
type HeaderHeightChangeEvent = Readonly<{
|
|
28
|
-
headerHeight: Double;
|
|
20
|
+
headerHeight: CT.Double;
|
|
29
21
|
}>;
|
|
30
22
|
|
|
31
23
|
type SheetDetentChangedEvent = Readonly<{
|
|
32
|
-
index: Int32;
|
|
24
|
+
index: CT.Int32;
|
|
33
25
|
isStable: boolean;
|
|
34
26
|
}>;
|
|
35
27
|
|
|
36
28
|
type GestureResponseDistanceType = Readonly<{
|
|
37
|
-
start: Float;
|
|
38
|
-
end: Float;
|
|
39
|
-
top: Float;
|
|
40
|
-
bottom: Float;
|
|
29
|
+
start: CT.Float;
|
|
30
|
+
end: CT.Float;
|
|
31
|
+
top: CT.Float;
|
|
32
|
+
bottom: CT.Float;
|
|
41
33
|
}>;
|
|
42
34
|
|
|
43
35
|
type StackPresentation =
|
|
@@ -72,32 +64,32 @@ type ScrollEdgeEffect = 'automatic' | 'hard' | 'soft' | 'hidden';
|
|
|
72
64
|
type OptionalBoolean = 'undefined' | 'false' | 'true';
|
|
73
65
|
|
|
74
66
|
export interface NativeProps extends ViewProps {
|
|
75
|
-
onAppear?: DirectEventHandler<ScreenEvent>;
|
|
76
|
-
onDisappear?: DirectEventHandler<ScreenEvent>;
|
|
77
|
-
onDismissed?: DirectEventHandler<ScreenDismissedEvent>;
|
|
78
|
-
onNativeDismissCancelled?: DirectEventHandler<ScreenDismissedEvent>;
|
|
79
|
-
onWillAppear?: DirectEventHandler<ScreenEvent>;
|
|
80
|
-
onWillDisappear?: DirectEventHandler<ScreenEvent>;
|
|
81
|
-
onHeaderHeightChange?: DirectEventHandler<HeaderHeightChangeEvent>;
|
|
82
|
-
onTransitionProgress?: DirectEventHandler<TransitionProgressEvent>;
|
|
83
|
-
onGestureCancel?: DirectEventHandler<ScreenEvent>;
|
|
84
|
-
onHeaderBackButtonClicked?: DirectEventHandler<ScreenEvent>;
|
|
85
|
-
onSheetDetentChanged?: DirectEventHandler<SheetDetentChangedEvent>;
|
|
86
|
-
screenId?: WithDefault<string, ''>;
|
|
67
|
+
onAppear?: CT.DirectEventHandler<ScreenEvent>;
|
|
68
|
+
onDisappear?: CT.DirectEventHandler<ScreenEvent>;
|
|
69
|
+
onDismissed?: CT.DirectEventHandler<ScreenDismissedEvent>;
|
|
70
|
+
onNativeDismissCancelled?: CT.DirectEventHandler<ScreenDismissedEvent>;
|
|
71
|
+
onWillAppear?: CT.DirectEventHandler<ScreenEvent>;
|
|
72
|
+
onWillDisappear?: CT.DirectEventHandler<ScreenEvent>;
|
|
73
|
+
onHeaderHeightChange?: CT.DirectEventHandler<HeaderHeightChangeEvent>;
|
|
74
|
+
onTransitionProgress?: CT.DirectEventHandler<TransitionProgressEvent>;
|
|
75
|
+
onGestureCancel?: CT.DirectEventHandler<ScreenEvent>;
|
|
76
|
+
onHeaderBackButtonClicked?: CT.DirectEventHandler<ScreenEvent>;
|
|
77
|
+
onSheetDetentChanged?: CT.DirectEventHandler<SheetDetentChangedEvent>;
|
|
78
|
+
screenId?: CT.WithDefault<string, ''>;
|
|
87
79
|
sheetAllowedDetents?: number[];
|
|
88
|
-
sheetLargestUndimmedDetent?: WithDefault<Int32, -1>;
|
|
89
|
-
sheetGrabberVisible?: WithDefault<boolean, false>;
|
|
90
|
-
sheetCornerRadius?: WithDefault<Float, -1.0>;
|
|
91
|
-
sheetExpandsWhenScrolledToEdge?: WithDefault<boolean, false>;
|
|
92
|
-
sheetInitialDetent?: WithDefault<Int32, 0>;
|
|
93
|
-
sheetElevation?: WithDefault<Int32, 24>;
|
|
94
|
-
sheetShouldOverflowTopInset?: WithDefault<boolean, false>;
|
|
80
|
+
sheetLargestUndimmedDetent?: CT.WithDefault<CT.Int32, -1>;
|
|
81
|
+
sheetGrabberVisible?: CT.WithDefault<boolean, false>;
|
|
82
|
+
sheetCornerRadius?: CT.WithDefault<CT.Float, -1.0>;
|
|
83
|
+
sheetExpandsWhenScrolledToEdge?: CT.WithDefault<boolean, false>;
|
|
84
|
+
sheetInitialDetent?: CT.WithDefault<CT.Int32, 0>;
|
|
85
|
+
sheetElevation?: CT.WithDefault<CT.Int32, 24>;
|
|
86
|
+
sheetShouldOverflowTopInset?: CT.WithDefault<boolean, false>;
|
|
95
87
|
customAnimationOnSwipe?: boolean;
|
|
96
|
-
fullScreenSwipeEnabled?: WithDefault<OptionalBoolean, 'undefined'>;
|
|
97
|
-
fullScreenSwipeShadowEnabled?: WithDefault<boolean, true>;
|
|
88
|
+
fullScreenSwipeEnabled?: CT.WithDefault<OptionalBoolean, 'undefined'>;
|
|
89
|
+
fullScreenSwipeShadowEnabled?: CT.WithDefault<boolean, true>;
|
|
98
90
|
homeIndicatorHidden?: boolean;
|
|
99
91
|
preventNativeDismiss?: boolean;
|
|
100
|
-
gestureEnabled?: WithDefault<boolean, true>;
|
|
92
|
+
gestureEnabled?: CT.WithDefault<boolean, true>;
|
|
101
93
|
statusBarColor?: ColorValue;
|
|
102
94
|
statusBarHidden?: boolean;
|
|
103
95
|
screenOrientation?: string;
|
|
@@ -105,23 +97,23 @@ export interface NativeProps extends ViewProps {
|
|
|
105
97
|
statusBarStyle?: string;
|
|
106
98
|
statusBarTranslucent?: boolean;
|
|
107
99
|
gestureResponseDistance?: GestureResponseDistanceType;
|
|
108
|
-
stackPresentation?: WithDefault<StackPresentation, 'push'>;
|
|
109
|
-
stackAnimation?: WithDefault<StackAnimation, 'default'>;
|
|
110
|
-
transitionDuration?: WithDefault<Int32, 500>;
|
|
111
|
-
replaceAnimation?: WithDefault<ReplaceAnimation, 'pop'>;
|
|
112
|
-
swipeDirection?: WithDefault<SwipeDirection, 'horizontal'>;
|
|
100
|
+
stackPresentation?: CT.WithDefault<StackPresentation, 'push'>;
|
|
101
|
+
stackAnimation?: CT.WithDefault<StackAnimation, 'default'>;
|
|
102
|
+
transitionDuration?: CT.WithDefault<CT.Int32, 500>;
|
|
103
|
+
replaceAnimation?: CT.WithDefault<ReplaceAnimation, 'pop'>;
|
|
104
|
+
swipeDirection?: CT.WithDefault<SwipeDirection, 'horizontal'>;
|
|
113
105
|
hideKeyboardOnSwipe?: boolean;
|
|
114
|
-
activityState?: WithDefault<Float, -1.0>;
|
|
106
|
+
activityState?: CT.WithDefault<CT.Float, -1.0>;
|
|
115
107
|
navigationBarColor?: ColorValue;
|
|
116
108
|
navigationBarTranslucent?: boolean;
|
|
117
109
|
navigationBarHidden?: boolean;
|
|
118
110
|
nativeBackButtonDismissalEnabled?: boolean;
|
|
119
|
-
bottomScrollEdgeEffect?: WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
120
|
-
leftScrollEdgeEffect?: WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
121
|
-
rightScrollEdgeEffect?: WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
122
|
-
topScrollEdgeEffect?: WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
123
|
-
synchronousShadowStateUpdatesEnabled?: WithDefault<boolean, false>;
|
|
124
|
-
androidResetScreenShadowStateOnOrientationChangeEnabled?: WithDefault<
|
|
111
|
+
bottomScrollEdgeEffect?: CT.WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
112
|
+
leftScrollEdgeEffect?: CT.WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
113
|
+
rightScrollEdgeEffect?: CT.WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
114
|
+
topScrollEdgeEffect?: CT.WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
115
|
+
synchronousShadowStateUpdatesEnabled?: CT.WithDefault<boolean, false>;
|
|
116
|
+
androidResetScreenShadowStateOnOrientationChangeEnabled?: CT.WithDefault<
|
|
125
117
|
boolean,
|
|
126
118
|
true
|
|
127
119
|
>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
5
4
|
import type { ViewProps } from 'react-native';
|
|
6
5
|
|
|
7
6
|
interface NativeProps extends ViewProps {}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { ViewProps, ColorValue } from 'react-native';
|
|
6
|
-
import type {
|
|
7
|
-
Int32,
|
|
8
|
-
WithDefault,
|
|
9
|
-
DirectEventHandler,
|
|
10
|
-
UnsafeMixed,
|
|
11
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { CodegenTypes as CT, ViewProps, ColorValue } from 'react-native';
|
|
12
5
|
|
|
13
6
|
type DirectionType = 'rtl' | 'ltr';
|
|
14
7
|
|
|
@@ -48,20 +41,20 @@ type BlurEffect =
|
|
|
48
41
|
type UserInterfaceStyle = 'unspecified' | 'light' | 'dark';
|
|
49
42
|
|
|
50
43
|
export interface NativeProps extends ViewProps {
|
|
51
|
-
onAttached?: DirectEventHandler<OnAttachedEvent>;
|
|
52
|
-
onDetached?: DirectEventHandler<OnDetachedEvent>;
|
|
44
|
+
onAttached?: CT.DirectEventHandler<OnAttachedEvent>;
|
|
45
|
+
onDetached?: CT.DirectEventHandler<OnDetachedEvent>;
|
|
53
46
|
backgroundColor?: ColorValue;
|
|
54
47
|
backTitle?: string;
|
|
55
48
|
backTitleFontFamily?: string;
|
|
56
|
-
backTitleFontSize?: Int32;
|
|
57
|
-
backTitleVisible?: WithDefault<boolean, 'true'>;
|
|
49
|
+
backTitleFontSize?: CT.Int32;
|
|
50
|
+
backTitleVisible?: CT.WithDefault<boolean, 'true'>;
|
|
58
51
|
color?: ColorValue;
|
|
59
|
-
direction?: WithDefault<DirectionType, 'ltr'>;
|
|
52
|
+
direction?: CT.WithDefault<DirectionType, 'ltr'>;
|
|
60
53
|
hidden?: boolean;
|
|
61
54
|
hideShadow?: boolean;
|
|
62
55
|
largeTitle?: boolean;
|
|
63
56
|
largeTitleFontFamily?: string;
|
|
64
|
-
largeTitleFontSize?: Int32;
|
|
57
|
+
largeTitleFontSize?: CT.Int32;
|
|
65
58
|
largeTitleFontWeight?: string;
|
|
66
59
|
largeTitleBackgroundColor?: ColorValue;
|
|
67
60
|
largeTitleHideShadow?: boolean;
|
|
@@ -69,24 +62,24 @@ export interface NativeProps extends ViewProps {
|
|
|
69
62
|
translucent?: boolean;
|
|
70
63
|
title?: string;
|
|
71
64
|
titleFontFamily?: string;
|
|
72
|
-
titleFontSize?: Int32;
|
|
65
|
+
titleFontSize?: CT.Int32;
|
|
73
66
|
titleFontWeight?: string;
|
|
74
67
|
titleColor?: ColorValue;
|
|
75
68
|
disableBackButtonMenu?: boolean;
|
|
76
|
-
backButtonDisplayMode?: WithDefault<BackButtonDisplayMode, 'default'>;
|
|
69
|
+
backButtonDisplayMode?: CT.WithDefault<BackButtonDisplayMode, 'default'>;
|
|
77
70
|
hideBackButton?: boolean;
|
|
78
71
|
backButtonInCustomView?: boolean;
|
|
79
|
-
blurEffect?: WithDefault<BlurEffect, 'none'>;
|
|
72
|
+
blurEffect?: CT.WithDefault<BlurEffect, 'none'>;
|
|
80
73
|
// TODO: implement this props on iOS
|
|
81
74
|
topInsetEnabled?: boolean;
|
|
82
|
-
headerLeftBarButtonItems?: UnsafeMixed[];
|
|
83
|
-
headerRightBarButtonItems?: UnsafeMixed[];
|
|
84
|
-
onPressHeaderBarButtonItem?: DirectEventHandler<OnPressHeaderBarButtonItemEvent>;
|
|
85
|
-
onPressHeaderBarButtonMenuItem?: DirectEventHandler<OnPressHeaderBarButtonMenuItemEvent>;
|
|
86
|
-
synchronousShadowStateUpdatesEnabled?: WithDefault<boolean, false>;
|
|
75
|
+
headerLeftBarButtonItems?: CT.UnsafeMixed[];
|
|
76
|
+
headerRightBarButtonItems?: CT.UnsafeMixed[];
|
|
77
|
+
onPressHeaderBarButtonItem?: CT.DirectEventHandler<OnPressHeaderBarButtonItemEvent>;
|
|
78
|
+
onPressHeaderBarButtonMenuItem?: CT.DirectEventHandler<OnPressHeaderBarButtonMenuItemEvent>;
|
|
79
|
+
synchronousShadowStateUpdatesEnabled?: CT.WithDefault<boolean, false>;
|
|
87
80
|
|
|
88
81
|
// Experimental
|
|
89
|
-
userInterfaceStyle?: WithDefault<UserInterfaceStyle, 'unspecified'>;
|
|
82
|
+
userInterfaceStyle?: CT.WithDefault<UserInterfaceStyle, 'unspecified'>;
|
|
90
83
|
}
|
|
91
84
|
|
|
92
85
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { ViewProps } from 'react-native';
|
|
6
|
-
import type { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { CodegenTypes as CT, ViewProps } from 'react-native';
|
|
7
5
|
|
|
8
6
|
export type HeaderSubviewTypes =
|
|
9
7
|
| 'back'
|
|
@@ -14,9 +12,9 @@ export type HeaderSubviewTypes =
|
|
|
14
12
|
| 'searchBar';
|
|
15
13
|
|
|
16
14
|
export interface NativeProps extends ViewProps {
|
|
17
|
-
type?: WithDefault<HeaderSubviewTypes, 'left'>;
|
|
15
|
+
type?: CT.WithDefault<HeaderSubviewTypes, 'left'>;
|
|
18
16
|
hidesSharedBackground?: boolean;
|
|
19
|
-
synchronousShadowStateUpdatesEnabled?: WithDefault<boolean, false>;
|
|
17
|
+
synchronousShadowStateUpdatesEnabled?: CT.WithDefault<boolean, false>;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { ViewProps } from 'react-native';
|
|
6
|
-
import type { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { CodegenTypes as CT, ViewProps } from 'react-native';
|
|
7
5
|
|
|
8
6
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
9
7
|
type FinishTransitioningEvent = Readonly<{}>;
|
|
10
8
|
|
|
11
9
|
export interface NativeProps extends ViewProps {
|
|
12
|
-
onFinishTransitioning?: DirectEventHandler<FinishTransitioningEvent>;
|
|
10
|
+
onFinishTransitioning?: CT.DirectEventHandler<FinishTransitioningEvent>;
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
export default codegenNativeComponent<NativeProps>('RNSScreenStack', {});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
5
|
-
import type { ViewProps, ColorValue, HostComponent } from 'react-native';
|
|
3
|
+
import { codegenNativeCommands, codegenNativeComponent } from 'react-native';
|
|
6
4
|
import type {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
CodegenTypes as CT,
|
|
6
|
+
ViewProps,
|
|
7
|
+
ColorValue,
|
|
8
|
+
HostComponent,
|
|
9
|
+
} from 'react-native';
|
|
11
10
|
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
12
12
|
export type SearchBarEvent = Readonly<{}>;
|
|
13
13
|
|
|
14
14
|
export type SearchButtonPressedEvent = Readonly<{
|
|
@@ -37,18 +37,18 @@ type AutoCapitalizeType =
|
|
|
37
37
|
type OptionalBoolean = 'undefined' | 'false' | 'true';
|
|
38
38
|
|
|
39
39
|
export interface NativeProps extends ViewProps {
|
|
40
|
-
onSearchFocus?: DirectEventHandler<SearchBarEvent> | null;
|
|
41
|
-
onSearchBlur?: DirectEventHandler<SearchBarEvent> | null;
|
|
42
|
-
onSearchButtonPress?: DirectEventHandler<SearchButtonPressedEvent> | null;
|
|
43
|
-
onCancelButtonPress?: DirectEventHandler<SearchBarEvent> | null;
|
|
44
|
-
onChangeText?: DirectEventHandler<ChangeTextEvent> | null;
|
|
45
|
-
hideWhenScrolling?: WithDefault<boolean, true>;
|
|
46
|
-
autoCapitalize?: WithDefault<AutoCapitalizeType, 'systemDefault'>;
|
|
40
|
+
onSearchFocus?: CT.DirectEventHandler<SearchBarEvent> | null;
|
|
41
|
+
onSearchBlur?: CT.DirectEventHandler<SearchBarEvent> | null;
|
|
42
|
+
onSearchButtonPress?: CT.DirectEventHandler<SearchButtonPressedEvent> | null;
|
|
43
|
+
onCancelButtonPress?: CT.DirectEventHandler<SearchBarEvent> | null;
|
|
44
|
+
onChangeText?: CT.DirectEventHandler<ChangeTextEvent> | null;
|
|
45
|
+
hideWhenScrolling?: CT.WithDefault<boolean, true>;
|
|
46
|
+
autoCapitalize?: CT.WithDefault<AutoCapitalizeType, 'systemDefault'>;
|
|
47
47
|
placeholder?: string;
|
|
48
|
-
placement?: WithDefault<SearchBarPlacement, 'automatic'>;
|
|
49
|
-
allowToolbarIntegration?: WithDefault<boolean, true>;
|
|
50
|
-
obscureBackground?: WithDefault<OptionalBoolean, 'undefined'>;
|
|
51
|
-
hideNavigationBar?: WithDefault<OptionalBoolean, 'undefined'>;
|
|
48
|
+
placement?: CT.WithDefault<SearchBarPlacement, 'automatic'>;
|
|
49
|
+
allowToolbarIntegration?: CT.WithDefault<boolean, true>;
|
|
50
|
+
obscureBackground?: CT.WithDefault<OptionalBoolean, 'undefined'>;
|
|
51
|
+
hideNavigationBar?: CT.WithDefault<OptionalBoolean, 'undefined'>;
|
|
52
52
|
cancelButtonText?: string;
|
|
53
53
|
// TODO: implement these on iOS
|
|
54
54
|
barTintColor?: ColorValue;
|
|
@@ -56,15 +56,15 @@ export interface NativeProps extends ViewProps {
|
|
|
56
56
|
textColor?: ColorValue;
|
|
57
57
|
|
|
58
58
|
// Android only
|
|
59
|
-
autoFocus?: WithDefault<boolean, false>;
|
|
59
|
+
autoFocus?: CT.WithDefault<boolean, false>;
|
|
60
60
|
disableBackButtonOverride?: boolean;
|
|
61
61
|
// TODO: consider creating enum here
|
|
62
62
|
inputType?: string;
|
|
63
|
-
onClose?: DirectEventHandler<SearchBarEvent> | null;
|
|
64
|
-
onOpen?: DirectEventHandler<SearchBarEvent> | null;
|
|
63
|
+
onClose?: CT.DirectEventHandler<SearchBarEvent> | null;
|
|
64
|
+
onOpen?: CT.DirectEventHandler<SearchBarEvent> | null;
|
|
65
65
|
hintTextColor?: ColorValue;
|
|
66
66
|
headerIconColor?: ColorValue;
|
|
67
|
-
shouldShowHintSearchIcon?: WithDefault<boolean, true>;
|
|
67
|
+
shouldShowHintSearchIcon?: CT.WithDefault<boolean, true>;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
type ComponentType = HostComponent<NativeProps>;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { ViewProps } from 'react-native';
|
|
6
|
-
import { WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { CodegenTypes as CT, ViewProps } from 'react-native';
|
|
7
5
|
|
|
8
6
|
type BottomAccessoryEnvironment = 'regular' | 'inline';
|
|
9
7
|
|
|
10
8
|
export interface NativeProps extends ViewProps {
|
|
11
|
-
environment?: WithDefault<BottomAccessoryEnvironment, 'regular'>;
|
|
9
|
+
environment?: CT.WithDefault<BottomAccessoryEnvironment, 'regular'>;
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
export default codegenNativeComponent<NativeProps>(
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { ViewProps } from 'react-native';
|
|
6
|
-
import { DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { CodegenTypes as CT, ViewProps } from 'react-native';
|
|
7
5
|
|
|
8
6
|
type EnvironmentChangeEvent = {
|
|
9
7
|
environment: 'regular' | 'inline';
|
|
10
8
|
};
|
|
11
9
|
|
|
12
10
|
export interface NativeProps extends ViewProps {
|
|
13
|
-
onEnvironmentChange?: DirectEventHandler<EnvironmentChangeEvent>;
|
|
11
|
+
onEnvironmentChange?: CT.DirectEventHandler<EnvironmentChangeEvent>;
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
export default codegenNativeComponent<NativeProps>('RNSBottomTabsAccessory', {
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import type { ColorValue, ViewProps } from 'react-native';
|
|
6
|
-
import type {
|
|
7
|
-
DirectEventHandler,
|
|
8
|
-
Float,
|
|
9
|
-
WithDefault,
|
|
10
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { CodegenTypes as CT, ColorValue, ViewProps } from 'react-native';
|
|
11
5
|
|
|
12
6
|
// TODO: Report issue on RN repo, that nesting color value inside a struct does not work.
|
|
13
7
|
// Generated code is ok, but the value is not passed down correctly - whatever color is set
|
|
@@ -37,7 +31,7 @@ type TabBarControllerMode = 'automatic' | 'tabBar' | 'tabSidebar';
|
|
|
37
31
|
|
|
38
32
|
export interface NativeProps extends ViewProps {
|
|
39
33
|
// Events
|
|
40
|
-
onNativeFocusChange?: DirectEventHandler<NativeFocusChangeEvent>;
|
|
34
|
+
onNativeFocusChange?: CT.DirectEventHandler<NativeFocusChangeEvent>;
|
|
41
35
|
|
|
42
36
|
// Appearance
|
|
43
37
|
// tabBarAppearance?: TabBarAppearance; // Does not work due to codegen issue.
|
|
@@ -45,8 +39,8 @@ export interface NativeProps extends ViewProps {
|
|
|
45
39
|
// Android-specific
|
|
46
40
|
tabBarBackgroundColor?: ColorValue;
|
|
47
41
|
tabBarItemTitleFontFamily?: string;
|
|
48
|
-
tabBarItemTitleFontSize?: Float;
|
|
49
|
-
tabBarItemTitleFontSizeActive?: Float;
|
|
42
|
+
tabBarItemTitleFontSize?: CT.Float;
|
|
43
|
+
tabBarItemTitleFontSizeActive?: CT.Float;
|
|
50
44
|
tabBarItemTitleFontWeight?: string;
|
|
51
45
|
tabBarItemTitleFontStyle?: string;
|
|
52
46
|
tabBarItemTitleFontColor?: ColorValue;
|
|
@@ -54,23 +48,23 @@ export interface NativeProps extends ViewProps {
|
|
|
54
48
|
tabBarItemIconColor?: ColorValue;
|
|
55
49
|
tabBarItemIconColorActive?: ColorValue;
|
|
56
50
|
tabBarItemActiveIndicatorColor?: ColorValue;
|
|
57
|
-
tabBarItemActiveIndicatorEnabled?: WithDefault<boolean, true>;
|
|
51
|
+
tabBarItemActiveIndicatorEnabled?: CT.WithDefault<boolean, true>;
|
|
58
52
|
tabBarItemRippleColor?: ColorValue;
|
|
59
|
-
tabBarItemLabelVisibilityMode?: WithDefault<
|
|
53
|
+
tabBarItemLabelVisibilityMode?: CT.WithDefault<
|
|
60
54
|
TabBarItemLabelVisibilityMode,
|
|
61
55
|
'auto'
|
|
62
56
|
>;
|
|
63
57
|
|
|
64
58
|
// iOS-specific
|
|
65
59
|
tabBarTintColor?: ColorValue;
|
|
66
|
-
tabBarMinimizeBehavior?: WithDefault<TabBarMinimizeBehavior, 'automatic'>;
|
|
67
|
-
tabBarControllerMode?: WithDefault<TabBarControllerMode, 'automatic'>;
|
|
68
|
-
tabBarHidden?: WithDefault<boolean, false>;
|
|
60
|
+
tabBarMinimizeBehavior?: CT.WithDefault<TabBarMinimizeBehavior, 'automatic'>;
|
|
61
|
+
tabBarControllerMode?: CT.WithDefault<TabBarControllerMode, 'automatic'>;
|
|
62
|
+
tabBarHidden?: CT.WithDefault<boolean, false>;
|
|
69
63
|
|
|
70
64
|
// Control
|
|
71
65
|
|
|
72
66
|
// Experimental support
|
|
73
|
-
controlNavigationStateInJS?: WithDefault<boolean, false>;
|
|
67
|
+
controlNavigationStateInJS?: CT.WithDefault<boolean, false>;
|
|
74
68
|
}
|
|
75
69
|
|
|
76
70
|
export default codegenNativeComponent<NativeProps>('RNSBottomTabs', {
|