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,19 +1,13 @@
|
|
|
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 {
|
|
5
|
+
CodegenTypes as CT,
|
|
6
6
|
ColorValue,
|
|
7
7
|
ImageSource,
|
|
8
8
|
ProcessedColorValue,
|
|
9
9
|
ViewProps,
|
|
10
10
|
} from 'react-native';
|
|
11
|
-
import {
|
|
12
|
-
DirectEventHandler,
|
|
13
|
-
Float,
|
|
14
|
-
Int32,
|
|
15
|
-
WithDefault,
|
|
16
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
17
11
|
|
|
18
12
|
import { UnsafeMixed } from './codegenUtils';
|
|
19
13
|
|
|
@@ -24,19 +18,19 @@ export type IconType = 'image' | 'template' | 'sfSymbol';
|
|
|
24
18
|
type GenericEmptyEvent = Readonly<{}>;
|
|
25
19
|
|
|
26
20
|
type LifecycleStateChangeEvent = Readonly<{
|
|
27
|
-
previousState: Int32;
|
|
28
|
-
newState: Int32;
|
|
21
|
+
previousState: CT.Int32;
|
|
22
|
+
newState: CT.Int32;
|
|
29
23
|
}>;
|
|
30
24
|
|
|
31
25
|
export type ItemStateAppearance = {
|
|
32
26
|
tabBarItemTitleFontFamily?: string;
|
|
33
|
-
tabBarItemTitleFontSize?: Float;
|
|
27
|
+
tabBarItemTitleFontSize?: CT.Float;
|
|
34
28
|
tabBarItemTitleFontWeight?: string;
|
|
35
29
|
tabBarItemTitleFontStyle?: string;
|
|
36
30
|
tabBarItemTitleFontColor?: ProcessedColorValue | null;
|
|
37
31
|
tabBarItemTitlePositionAdjustment?: {
|
|
38
|
-
horizontal?: Float;
|
|
39
|
-
vertical?: Float;
|
|
32
|
+
horizontal?: CT.Float;
|
|
33
|
+
vertical?: CT.Float;
|
|
40
34
|
};
|
|
41
35
|
tabBarItemIconColor?: ProcessedColorValue | null;
|
|
42
36
|
tabBarItemBadgeBackgroundColor?: ProcessedColorValue | null;
|
|
@@ -56,7 +50,7 @@ export type Appearance = {
|
|
|
56
50
|
|
|
57
51
|
tabBarBackgroundColor?: ProcessedColorValue | null;
|
|
58
52
|
tabBarShadowColor?: ProcessedColorValue | null;
|
|
59
|
-
tabBarBlurEffect?: WithDefault<BlurEffect, 'systemDefault'>;
|
|
53
|
+
tabBarBlurEffect?: CT.WithDefault<BlurEffect, 'systemDefault'>;
|
|
60
54
|
};
|
|
61
55
|
|
|
62
56
|
type BlurEffect =
|
|
@@ -115,11 +109,11 @@ type UserInterfaceStyle = 'unspecified' | 'light' | 'dark';
|
|
|
115
109
|
|
|
116
110
|
export interface NativeProps extends ViewProps {
|
|
117
111
|
// Events
|
|
118
|
-
onLifecycleStateChange?: DirectEventHandler<LifecycleStateChangeEvent>;
|
|
119
|
-
onWillAppear?: DirectEventHandler<GenericEmptyEvent>;
|
|
120
|
-
onDidAppear?: DirectEventHandler<GenericEmptyEvent>;
|
|
121
|
-
onWillDisappear?: DirectEventHandler<GenericEmptyEvent>;
|
|
122
|
-
onDidDisappear?: DirectEventHandler<GenericEmptyEvent>;
|
|
112
|
+
onLifecycleStateChange?: CT.DirectEventHandler<LifecycleStateChangeEvent>;
|
|
113
|
+
onWillAppear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
114
|
+
onDidAppear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
115
|
+
onWillDisappear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
116
|
+
onDidDisappear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
123
117
|
|
|
124
118
|
// Control
|
|
125
119
|
isFocused?: boolean;
|
|
@@ -127,11 +121,11 @@ export interface NativeProps extends ViewProps {
|
|
|
127
121
|
|
|
128
122
|
// General
|
|
129
123
|
title?: string | undefined | null;
|
|
130
|
-
isTitleUndefined?: WithDefault<boolean, true>;
|
|
124
|
+
isTitleUndefined?: CT.WithDefault<boolean, true>;
|
|
131
125
|
badgeValue?: string;
|
|
132
126
|
|
|
133
127
|
// Currently iOS-only
|
|
134
|
-
orientation?: WithDefault<Orientation, 'inherit'>;
|
|
128
|
+
orientation?: CT.WithDefault<Orientation, 'inherit'>;
|
|
135
129
|
|
|
136
130
|
// Android-specific image handling
|
|
137
131
|
drawableIconResourceName?: string;
|
|
@@ -143,7 +137,7 @@ export interface NativeProps extends ViewProps {
|
|
|
143
137
|
standardAppearance?: UnsafeMixed<Appearance>;
|
|
144
138
|
scrollEdgeAppearance?: UnsafeMixed<Appearance>;
|
|
145
139
|
|
|
146
|
-
iconType?: WithDefault<IconType, 'sfSymbol'>;
|
|
140
|
+
iconType?: CT.WithDefault<IconType, 'sfSymbol'>;
|
|
147
141
|
|
|
148
142
|
iconImageSource?: ImageSource;
|
|
149
143
|
iconSfSymbolName?: string;
|
|
@@ -151,24 +145,27 @@ export interface NativeProps extends ViewProps {
|
|
|
151
145
|
selectedIconImageSource?: ImageSource;
|
|
152
146
|
selectedIconSfSymbolName?: string;
|
|
153
147
|
|
|
154
|
-
systemItem?: WithDefault<SystemItem, 'none'>;
|
|
148
|
+
systemItem?: CT.WithDefault<SystemItem, 'none'>;
|
|
155
149
|
|
|
156
150
|
specialEffects?: {
|
|
157
151
|
repeatedTabSelection?: {
|
|
158
|
-
popToRoot?: WithDefault<boolean, true>;
|
|
159
|
-
scrollToTop?: WithDefault<boolean, true>;
|
|
152
|
+
popToRoot?: CT.WithDefault<boolean, true>;
|
|
153
|
+
scrollToTop?: CT.WithDefault<boolean, true>;
|
|
160
154
|
};
|
|
161
155
|
};
|
|
162
156
|
|
|
163
|
-
overrideScrollViewContentInsetAdjustmentBehavior?: WithDefault<
|
|
157
|
+
overrideScrollViewContentInsetAdjustmentBehavior?: CT.WithDefault<
|
|
158
|
+
boolean,
|
|
159
|
+
true
|
|
160
|
+
>;
|
|
164
161
|
|
|
165
|
-
bottomScrollEdgeEffect?: WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
166
|
-
leftScrollEdgeEffect?: WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
167
|
-
rightScrollEdgeEffect?: WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
168
|
-
topScrollEdgeEffect?: WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
162
|
+
bottomScrollEdgeEffect?: CT.WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
163
|
+
leftScrollEdgeEffect?: CT.WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
164
|
+
rightScrollEdgeEffect?: CT.WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
165
|
+
topScrollEdgeEffect?: CT.WithDefault<ScrollEdgeEffect, 'automatic'>;
|
|
169
166
|
|
|
170
167
|
// Experimental
|
|
171
|
-
userInterfaceStyle?: WithDefault<UserInterfaceStyle, 'unspecified'>;
|
|
168
|
+
userInterfaceStyle?: CT.WithDefault<UserInterfaceStyle, 'unspecified'>;
|
|
172
169
|
}
|
|
173
170
|
|
|
174
171
|
export default codegenNativeComponent<NativeProps>('RNSBottomTabsScreen', {});
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import type { ViewProps } from 'react-native';
|
|
4
|
-
|
|
5
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
|
+
import { codegenNativeComponent } from 'react-native';
|
|
6
5
|
|
|
7
6
|
export interface NativeProps extends ViewProps {}
|
|
8
7
|
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import type { ViewProps } from 'react-native';
|
|
4
|
-
|
|
5
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
6
|
-
import type {
|
|
7
|
-
DirectEventHandler,
|
|
8
|
-
Float,
|
|
9
|
-
WithDefault,
|
|
10
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import type { CodegenTypes as CT, ViewProps } from 'react-native';
|
|
4
|
+
import { codegenNativeComponent } from 'react-native';
|
|
11
5
|
|
|
12
6
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
13
7
|
type GenericEmptyEvent = Readonly<{}>;
|
|
@@ -46,50 +40,50 @@ type SplitViewOrientation =
|
|
|
46
40
|
type SplitViewPrimaryBackgroundStyle = 'default' | 'none' | 'sidebar';
|
|
47
41
|
|
|
48
42
|
interface ColumnMetrics {
|
|
49
|
-
minimumPrimaryColumnWidth?: WithDefault<Float, -1.0>;
|
|
50
|
-
maximumPrimaryColumnWidth?: WithDefault<Float, -1.0>;
|
|
51
|
-
preferredPrimaryColumnWidthOrFraction?: WithDefault<Float, -1.0>;
|
|
52
|
-
minimumSupplementaryColumnWidth?: WithDefault<Float, -1.0>;
|
|
53
|
-
maximumSupplementaryColumnWidth?: WithDefault<Float, -1.0>;
|
|
54
|
-
preferredSupplementaryColumnWidthOrFraction?: WithDefault<Float, -1.0>;
|
|
43
|
+
minimumPrimaryColumnWidth?: CT.WithDefault<CT.Float, -1.0>;
|
|
44
|
+
maximumPrimaryColumnWidth?: CT.WithDefault<CT.Float, -1.0>;
|
|
45
|
+
preferredPrimaryColumnWidthOrFraction?: CT.WithDefault<CT.Float, -1.0>;
|
|
46
|
+
minimumSupplementaryColumnWidth?: CT.WithDefault<CT.Float, -1.0>;
|
|
47
|
+
maximumSupplementaryColumnWidth?: CT.WithDefault<CT.Float, -1.0>;
|
|
48
|
+
preferredSupplementaryColumnWidthOrFraction?: CT.WithDefault<CT.Float, -1.0>;
|
|
55
49
|
|
|
56
50
|
// iOS 26 only
|
|
57
|
-
minimumSecondaryColumnWidth?: WithDefault<Float, -1.0>;
|
|
58
|
-
preferredSecondaryColumnWidthOrFraction?: WithDefault<Float, -1.0>;
|
|
59
|
-
minimumInspectorColumnWidth?: WithDefault<Float, -1.0>;
|
|
60
|
-
maximumInspectorColumnWidth?: WithDefault<Float, -1.0>;
|
|
61
|
-
preferredInspectorColumnWidthOrFraction?: WithDefault<Float, -1.0>;
|
|
51
|
+
minimumSecondaryColumnWidth?: CT.WithDefault<CT.Float, -1.0>;
|
|
52
|
+
preferredSecondaryColumnWidthOrFraction?: CT.WithDefault<CT.Float, -1.0>;
|
|
53
|
+
minimumInspectorColumnWidth?: CT.WithDefault<CT.Float, -1.0>;
|
|
54
|
+
maximumInspectorColumnWidth?: CT.WithDefault<CT.Float, -1.0>;
|
|
55
|
+
preferredInspectorColumnWidthOrFraction?: CT.WithDefault<CT.Float, -1.0>;
|
|
62
56
|
}
|
|
63
57
|
|
|
64
58
|
interface NativeProps extends ViewProps {
|
|
65
59
|
// Appearance
|
|
66
60
|
|
|
67
|
-
preferredDisplayMode?: WithDefault<SplitViewDisplayMode, 'automatic'>;
|
|
68
|
-
preferredSplitBehavior?: WithDefault<SplitViewSplitBehavior, 'automatic'>;
|
|
69
|
-
primaryEdge?: WithDefault<SplitViewPrimaryEdge, 'leading'>;
|
|
70
|
-
showSecondaryToggleButton?: WithDefault<boolean, false>;
|
|
71
|
-
displayModeButtonVisibility?: WithDefault<
|
|
61
|
+
preferredDisplayMode?: CT.WithDefault<SplitViewDisplayMode, 'automatic'>;
|
|
62
|
+
preferredSplitBehavior?: CT.WithDefault<SplitViewSplitBehavior, 'automatic'>;
|
|
63
|
+
primaryEdge?: CT.WithDefault<SplitViewPrimaryEdge, 'leading'>;
|
|
64
|
+
showSecondaryToggleButton?: CT.WithDefault<boolean, false>;
|
|
65
|
+
displayModeButtonVisibility?: CT.WithDefault<
|
|
72
66
|
SplitViewDisplayModeButtonVisibility,
|
|
73
67
|
'automatic'
|
|
74
68
|
>;
|
|
75
69
|
columnMetrics?: ColumnMetrics;
|
|
76
|
-
orientation?: WithDefault<SplitViewOrientation, 'inherit'>;
|
|
77
|
-
primaryBackgroundStyle?: WithDefault<
|
|
70
|
+
orientation?: CT.WithDefault<SplitViewOrientation, 'inherit'>;
|
|
71
|
+
primaryBackgroundStyle?: CT.WithDefault<
|
|
78
72
|
SplitViewPrimaryBackgroundStyle,
|
|
79
73
|
'default'
|
|
80
74
|
>;
|
|
81
75
|
|
|
82
76
|
// Interactions
|
|
83
77
|
|
|
84
|
-
presentsWithGesture?: WithDefault<boolean, true>;
|
|
85
|
-
showInspector?: WithDefault<boolean, false>;
|
|
78
|
+
presentsWithGesture?: CT.WithDefault<boolean, true>;
|
|
79
|
+
showInspector?: CT.WithDefault<boolean, false>;
|
|
86
80
|
|
|
87
81
|
// Custom events
|
|
88
82
|
|
|
89
|
-
onCollapse?: DirectEventHandler<GenericEmptyEvent>;
|
|
90
|
-
onDisplayModeWillChange?: DirectEventHandler<DisplayModeWillChangeEvent>;
|
|
91
|
-
onExpand?: DirectEventHandler<GenericEmptyEvent>;
|
|
92
|
-
onInspectorHide?: DirectEventHandler<GenericEmptyEvent>;
|
|
83
|
+
onCollapse?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
84
|
+
onDisplayModeWillChange?: CT.DirectEventHandler<DisplayModeWillChangeEvent>;
|
|
85
|
+
onExpand?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
86
|
+
onInspectorHide?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
export default codegenNativeComponent<NativeProps>('RNSSplitViewHost', {});
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import type { ViewProps } from 'react-native';
|
|
4
|
-
import {
|
|
5
|
-
DirectEventHandler,
|
|
6
|
-
WithDefault,
|
|
7
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
-
// eslint-disable-next-line @react-native/no-deep-imports
|
|
9
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
import type { CodegenTypes as CT, ViewProps } from 'react-native';
|
|
4
|
+
import { codegenNativeComponent } from 'react-native';
|
|
10
5
|
|
|
11
6
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
12
7
|
type GenericEmptyEvent = Readonly<{}>;
|
|
@@ -15,13 +10,13 @@ type SplitViewScreenColumnType = 'column' | 'inspector';
|
|
|
15
10
|
|
|
16
11
|
interface NativeProps extends ViewProps {
|
|
17
12
|
// Config
|
|
18
|
-
columnType?: WithDefault<SplitViewScreenColumnType, 'column'>;
|
|
13
|
+
columnType?: CT.WithDefault<SplitViewScreenColumnType, 'column'>;
|
|
19
14
|
|
|
20
15
|
// Events
|
|
21
|
-
onWillAppear?: DirectEventHandler<GenericEmptyEvent>;
|
|
22
|
-
onDidAppear?: DirectEventHandler<GenericEmptyEvent>;
|
|
23
|
-
onWillDisappear?: DirectEventHandler<GenericEmptyEvent>;
|
|
24
|
-
onDidDisappear?: DirectEventHandler<GenericEmptyEvent>;
|
|
16
|
+
onWillAppear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
17
|
+
onDidAppear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
18
|
+
onWillDisappear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
19
|
+
onDidDisappear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
25
20
|
}
|
|
26
21
|
|
|
27
22
|
export default codegenNativeComponent<NativeProps>('RNSSplitViewScreen', {
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import type { ViewProps } from 'react-native';
|
|
4
|
-
import {
|
|
5
|
-
DirectEventHandler,
|
|
6
|
-
Int32,
|
|
7
|
-
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
8
|
-
// eslint-disable-next-line @react-native/no-deep-imports
|
|
9
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
3
|
+
import type { CodegenTypes as CT, ViewProps } from 'react-native';
|
|
4
|
+
import { codegenNativeComponent } from 'react-native';
|
|
10
5
|
|
|
11
6
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
12
7
|
export type GenericEmptyEvent = Readonly<{}>;
|
|
13
8
|
|
|
14
9
|
export interface NativeProps extends ViewProps {
|
|
15
10
|
// Control
|
|
16
|
-
maxLifecycleState: Int32;
|
|
11
|
+
maxLifecycleState: CT.Int32;
|
|
17
12
|
screenKey: string;
|
|
18
13
|
|
|
19
14
|
// Events
|
|
20
|
-
onWillAppear?: DirectEventHandler<GenericEmptyEvent>;
|
|
21
|
-
onDidAppear?: DirectEventHandler<GenericEmptyEvent>;
|
|
22
|
-
onWillDisappear?: DirectEventHandler<GenericEmptyEvent>;
|
|
23
|
-
onDidDisappear?: DirectEventHandler<GenericEmptyEvent>;
|
|
15
|
+
onWillAppear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
16
|
+
onDidAppear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
17
|
+
onWillDisappear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
18
|
+
onDidDisappear?: CT.DirectEventHandler<GenericEmptyEvent>;
|
|
24
19
|
}
|
|
25
20
|
|
|
26
21
|
export default codegenNativeComponent<NativeProps>('RNSStackScreen', {});
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// Implementation adapted from `react-native-safe-area-context`:
|
|
2
2
|
// https://github.com/AppAndFlow/react-native-safe-area-context/blob/v5.6.1/src/specs/NativeSafeAreaView.ts
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import { ViewProps } from 'react-native';
|
|
7
|
-
import { WithDefault } from 'react-native/Libraries/Types/CodegenTypesNamespace';
|
|
4
|
+
import { codegenNativeComponent } from 'react-native';
|
|
5
|
+
import type { CodegenTypes as CT, ViewProps } from 'react-native';
|
|
8
6
|
|
|
9
7
|
type InsetType = 'all' | 'system' | 'interface';
|
|
10
8
|
|
|
@@ -16,7 +14,7 @@ export interface NativeProps extends ViewProps {
|
|
|
16
14
|
left: boolean;
|
|
17
15
|
}>;
|
|
18
16
|
// Android-only
|
|
19
|
-
insetType?: WithDefault<InsetType, 'all'>;
|
|
17
|
+
insetType?: CT.WithDefault<InsetType, 'all'>;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
export default codegenNativeComponent<NativeProps>('RNSSafeAreaView', {
|