react-native-screens 4.19.0-nightly-20251208-2903b79de → 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.
Files changed (145) hide show
  1. package/ios/RNSScreenStackHeaderSubview.mm +65 -3
  2. package/lib/commonjs/components/SearchBar.js.map +1 -1
  3. package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js +2 -4
  4. package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
  5. package/lib/commonjs/fabric/ModalScreenNativeComponent.js +2 -4
  6. package/lib/commonjs/fabric/ModalScreenNativeComponent.js.map +1 -1
  7. package/lib/commonjs/fabric/ScreenContainerNativeComponent.js +2 -4
  8. package/lib/commonjs/fabric/ScreenContainerNativeComponent.js.map +1 -1
  9. package/lib/commonjs/fabric/ScreenContentWrapperNativeComponent.js +2 -4
  10. package/lib/commonjs/fabric/ScreenContentWrapperNativeComponent.js.map +1 -1
  11. package/lib/commonjs/fabric/ScreenFooterNativeComponent.js +2 -4
  12. package/lib/commonjs/fabric/ScreenFooterNativeComponent.js.map +1 -1
  13. package/lib/commonjs/fabric/ScreenNativeComponent.js +2 -4
  14. package/lib/commonjs/fabric/ScreenNativeComponent.js.map +1 -1
  15. package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js +2 -4
  16. package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
  17. package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js +2 -4
  18. package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
  19. package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js +2 -4
  20. package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
  21. package/lib/commonjs/fabric/ScreenStackNativeComponent.js +2 -4
  22. package/lib/commonjs/fabric/ScreenStackNativeComponent.js.map +1 -1
  23. package/lib/commonjs/fabric/SearchBarNativeComponent.js +5 -6
  24. package/lib/commonjs/fabric/SearchBarNativeComponent.js.map +1 -1
  25. package/lib/commonjs/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.js +2 -4
  26. package/lib/commonjs/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.js.map +1 -1
  27. package/lib/commonjs/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.js +2 -4
  28. package/lib/commonjs/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.js.map +1 -1
  29. package/lib/commonjs/fabric/bottom-tabs/BottomTabsNativeComponent.js +2 -4
  30. package/lib/commonjs/fabric/bottom-tabs/BottomTabsNativeComponent.js.map +1 -1
  31. package/lib/commonjs/fabric/bottom-tabs/BottomTabsScreenNativeComponent.js +2 -4
  32. package/lib/commonjs/fabric/bottom-tabs/BottomTabsScreenNativeComponent.js.map +1 -1
  33. package/lib/commonjs/fabric/gamma/ScreenStackHostNativeComponent.js +2 -4
  34. package/lib/commonjs/fabric/gamma/ScreenStackHostNativeComponent.js.map +1 -1
  35. package/lib/commonjs/fabric/gamma/SplitViewHostNativeComponent.js +2 -4
  36. package/lib/commonjs/fabric/gamma/SplitViewHostNativeComponent.js.map +1 -1
  37. package/lib/commonjs/fabric/gamma/SplitViewScreenNativeComponent.js +2 -4
  38. package/lib/commonjs/fabric/gamma/SplitViewScreenNativeComponent.js.map +1 -1
  39. package/lib/commonjs/fabric/gamma/StackScreenNativeComponent.js +2 -4
  40. package/lib/commonjs/fabric/gamma/StackScreenNativeComponent.js.map +1 -1
  41. package/lib/commonjs/fabric/safe-area/SafeAreaViewNativeComponent.js +2 -4
  42. package/lib/commonjs/fabric/safe-area/SafeAreaViewNativeComponent.js.map +1 -1
  43. package/lib/module/components/SearchBar.js.map +1 -1
  44. package/lib/module/fabric/FullWindowOverlayNativeComponent.js +1 -2
  45. package/lib/module/fabric/FullWindowOverlayNativeComponent.js.map +1 -1
  46. package/lib/module/fabric/ModalScreenNativeComponent.js +1 -2
  47. package/lib/module/fabric/ModalScreenNativeComponent.js.map +1 -1
  48. package/lib/module/fabric/ScreenContainerNativeComponent.js +1 -2
  49. package/lib/module/fabric/ScreenContainerNativeComponent.js.map +1 -1
  50. package/lib/module/fabric/ScreenContentWrapperNativeComponent.js +1 -2
  51. package/lib/module/fabric/ScreenContentWrapperNativeComponent.js.map +1 -1
  52. package/lib/module/fabric/ScreenFooterNativeComponent.js +1 -2
  53. package/lib/module/fabric/ScreenFooterNativeComponent.js.map +1 -1
  54. package/lib/module/fabric/ScreenNativeComponent.js +1 -2
  55. package/lib/module/fabric/ScreenNativeComponent.js.map +1 -1
  56. package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js +1 -2
  57. package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js.map +1 -1
  58. package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js +1 -2
  59. package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js.map +1 -1
  60. package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js +1 -2
  61. package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js.map +1 -1
  62. package/lib/module/fabric/ScreenStackNativeComponent.js +1 -2
  63. package/lib/module/fabric/ScreenStackNativeComponent.js.map +1 -1
  64. package/lib/module/fabric/SearchBarNativeComponent.js +4 -3
  65. package/lib/module/fabric/SearchBarNativeComponent.js.map +1 -1
  66. package/lib/module/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.js +1 -2
  67. package/lib/module/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.js.map +1 -1
  68. package/lib/module/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.js +1 -2
  69. package/lib/module/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.js.map +1 -1
  70. package/lib/module/fabric/bottom-tabs/BottomTabsNativeComponent.js +1 -2
  71. package/lib/module/fabric/bottom-tabs/BottomTabsNativeComponent.js.map +1 -1
  72. package/lib/module/fabric/bottom-tabs/BottomTabsScreenNativeComponent.js +1 -2
  73. package/lib/module/fabric/bottom-tabs/BottomTabsScreenNativeComponent.js.map +1 -1
  74. package/lib/module/fabric/gamma/ScreenStackHostNativeComponent.js +1 -2
  75. package/lib/module/fabric/gamma/ScreenStackHostNativeComponent.js.map +1 -1
  76. package/lib/module/fabric/gamma/SplitViewHostNativeComponent.js +1 -2
  77. package/lib/module/fabric/gamma/SplitViewHostNativeComponent.js.map +1 -1
  78. package/lib/module/fabric/gamma/SplitViewScreenNativeComponent.js +1 -2
  79. package/lib/module/fabric/gamma/SplitViewScreenNativeComponent.js.map +1 -1
  80. package/lib/module/fabric/gamma/StackScreenNativeComponent.js +1 -2
  81. package/lib/module/fabric/gamma/StackScreenNativeComponent.js.map +1 -1
  82. package/lib/module/fabric/safe-area/SafeAreaViewNativeComponent.js +1 -2
  83. package/lib/module/fabric/safe-area/SafeAreaViewNativeComponent.js.map +1 -1
  84. package/lib/typescript/fabric/FullWindowOverlayNativeComponent.d.ts +3 -4
  85. package/lib/typescript/fabric/FullWindowOverlayNativeComponent.d.ts.map +1 -1
  86. package/lib/typescript/fabric/ModalScreenNativeComponent.d.ts +41 -42
  87. package/lib/typescript/fabric/ModalScreenNativeComponent.d.ts.map +1 -1
  88. package/lib/typescript/fabric/ScreenContainerNativeComponent.d.ts +1 -1
  89. package/lib/typescript/fabric/ScreenContainerNativeComponent.d.ts.map +1 -1
  90. package/lib/typescript/fabric/ScreenContentWrapperNativeComponent.d.ts +1 -1
  91. package/lib/typescript/fabric/ScreenContentWrapperNativeComponent.d.ts.map +1 -1
  92. package/lib/typescript/fabric/ScreenFooterNativeComponent.d.ts +1 -1
  93. package/lib/typescript/fabric/ScreenFooterNativeComponent.d.ts.map +1 -1
  94. package/lib/typescript/fabric/ScreenNativeComponent.d.ts +46 -47
  95. package/lib/typescript/fabric/ScreenNativeComponent.d.ts.map +1 -1
  96. package/lib/typescript/fabric/ScreenNavigationContainerNativeComponent.d.ts +1 -1
  97. package/lib/typescript/fabric/ScreenNavigationContainerNativeComponent.d.ts.map +1 -1
  98. package/lib/typescript/fabric/ScreenStackHeaderConfigNativeComponent.d.ts +17 -18
  99. package/lib/typescript/fabric/ScreenStackHeaderConfigNativeComponent.d.ts.map +1 -1
  100. package/lib/typescript/fabric/ScreenStackHeaderSubviewNativeComponent.d.ts +4 -5
  101. package/lib/typescript/fabric/ScreenStackHeaderSubviewNativeComponent.d.ts.map +1 -1
  102. package/lib/typescript/fabric/ScreenStackNativeComponent.d.ts +3 -4
  103. package/lib/typescript/fabric/ScreenStackNativeComponent.d.ts.map +1 -1
  104. package/lib/typescript/fabric/SearchBarNativeComponent.d.ts +17 -18
  105. package/lib/typescript/fabric/SearchBarNativeComponent.d.ts.map +1 -1
  106. package/lib/typescript/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.d.ts +3 -4
  107. package/lib/typescript/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.d.ts.map +1 -1
  108. package/lib/typescript/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.d.ts +3 -4
  109. package/lib/typescript/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.d.ts.map +1 -1
  110. package/lib/typescript/fabric/bottom-tabs/BottomTabsNativeComponent.d.ts +11 -12
  111. package/lib/typescript/fabric/bottom-tabs/BottomTabsNativeComponent.d.ts.map +1 -1
  112. package/lib/typescript/fabric/bottom-tabs/BottomTabsScreenNativeComponent.d.ts +25 -26
  113. package/lib/typescript/fabric/bottom-tabs/BottomTabsScreenNativeComponent.d.ts.map +1 -1
  114. package/lib/typescript/fabric/gamma/ScreenStackHostNativeComponent.d.ts +1 -1
  115. package/lib/typescript/fabric/gamma/ScreenStackHostNativeComponent.d.ts.map +1 -1
  116. package/lib/typescript/fabric/gamma/SplitViewHostNativeComponent.d.ts +26 -27
  117. package/lib/typescript/fabric/gamma/SplitViewHostNativeComponent.d.ts.map +1 -1
  118. package/lib/typescript/fabric/gamma/SplitViewScreenNativeComponent.d.ts +7 -8
  119. package/lib/typescript/fabric/gamma/SplitViewScreenNativeComponent.d.ts.map +1 -1
  120. package/lib/typescript/fabric/gamma/StackScreenNativeComponent.d.ts +7 -8
  121. package/lib/typescript/fabric/gamma/StackScreenNativeComponent.d.ts.map +1 -1
  122. package/lib/typescript/fabric/safe-area/SafeAreaViewNativeComponent.d.ts +3 -4
  123. package/lib/typescript/fabric/safe-area/SafeAreaViewNativeComponent.d.ts.map +1 -1
  124. package/package.json +1 -1
  125. package/src/components/SearchBar.tsx +6 -6
  126. package/src/fabric/FullWindowOverlayNativeComponent.ts +3 -5
  127. package/src/fabric/ModalScreenNativeComponent.ts +41 -49
  128. package/src/fabric/ScreenContainerNativeComponent.ts +1 -2
  129. package/src/fabric/ScreenContentWrapperNativeComponent.ts +1 -2
  130. package/src/fabric/ScreenFooterNativeComponent.ts +1 -2
  131. package/src/fabric/ScreenNativeComponent.ts +46 -54
  132. package/src/fabric/ScreenNavigationContainerNativeComponent.ts +1 -2
  133. package/src/fabric/ScreenStackHeaderConfigNativeComponent.ts +17 -24
  134. package/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts +4 -6
  135. package/src/fabric/ScreenStackNativeComponent.ts +3 -5
  136. package/src/fabric/SearchBarNativeComponent.ts +22 -22
  137. package/src/fabric/bottom-tabs/BottomTabsAccessoryContentNativeComponent.ts +3 -5
  138. package/src/fabric/bottom-tabs/BottomTabsAccessoryNativeComponent.ts +3 -5
  139. package/src/fabric/bottom-tabs/BottomTabsNativeComponent.ts +11 -17
  140. package/src/fabric/bottom-tabs/BottomTabsScreenNativeComponent.ts +28 -31
  141. package/src/fabric/gamma/ScreenStackHostNativeComponent.ts +1 -2
  142. package/src/fabric/gamma/SplitViewHostNativeComponent.ts +26 -32
  143. package/src/fabric/gamma/SplitViewScreenNativeComponent.ts +7 -12
  144. package/src/fabric/gamma/StackScreenNativeComponent.ts +7 -12
  145. package/src/fabric/safe-area/SafeAreaViewNativeComponent.ts +3 -5
@@ -1,14 +1,7 @@
1
1
  'use client';
2
2
 
3
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
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
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
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
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
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
- /* eslint-disable */
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
- WithDefault,
8
- DirectEventHandler,
9
- } from 'react-native/Libraries/Types/CodegenTypes';
10
- import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
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
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
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
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
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
- // eslint-disable-next-line @react-native/no-deep-imports
4
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
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', {
@@ -1,19 +1,13 @@
1
1
  'use client';
2
2
 
3
- // eslint-disable-next-line @react-native/no-deep-imports
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<boolean, true>;
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
- // eslint-disable-next-line @react-native/no-deep-imports
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
- // eslint-disable-next-line @react-native/no-deep-imports
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
- // eslint-disable-next-line @react-native/no-deep-imports
5
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
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', {