Export additional prop/event types (#57278)

Summary:
Pull Request resolved: https://github.com/react/react-native/pull/57278

Add four existing types to the public API surface in `index.js.flow` so they will be accessible under the Strict TypeScript API:

- `AccessibilityActionInfo` (from `Components/View/ViewAccessibility`)
- `ImageResizeMode` (from `Image/ImageResizeMode`)
- `EdgeInsetsProp` (from `StyleSheet/EdgeInsetsPropType`)
- `TextInputBlurEvent` (from `Components/TextInput/TextInput`)

Changelog:
[General][Added] - Export `AccessibilityActionInfo`, `ImageResizeMode`, `EdgeInsetsProp`, and `TextInputBlurEvent` types

Reviewed By: christophpurrer

Differential Revision: D109020054

fbshipit-source-id: e0594280c1053775a757e6513c264ce175a0dc36
This commit is contained in:
Alex Hunt authored and meta-codesync[bot] committed 2026-06-19 06:24:48 -07:00
1 parent 142b6172a9
commit ee36c67a27
2 files changed
+71 -63

No files matched your search

+67 -63
View File
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<e62248f4d4932263a592c35ebf383e1a>>
* @generated SignedSource<<6fd7172a54686bbab8a03359976ef63d>>
*
* This file was generated by scripts/js-api/build-types/index.js.
*/
@@ -5892,23 +5892,24 @@ declare type WrapperComponentProvider = (
) => React.ComponentType<any>
export {
AccessibilityActionEvent, // a0d4daa0
AccessibilityActionInfo, // db47a917
AccessibilityInfo, // 23a3aa9b
AccessibilityProps, // 5a2836fc
AccessibilityProps, // 21f32d3a
AccessibilityRole, // f2f2e066
AccessibilityState, // b0c2b3f7
AccessibilityValue, // cf8bcb74
ActionSheetIOS, // b558559e
ActionSheetIOSOptions, // 1756eb5a
ActivityIndicator, // 2a0518e9
ActivityIndicator, // 0f796809
ActivityIndicatorInstance, // a82dd4e7
ActivityIndicatorProps, // f330d1dc
ActivityIndicatorProps, // a232e3ff
Alert, // 5bf12165
AlertButton, // bf1a3b60
AlertButtonStyle, // ec9fb242
AlertOptions, // a0cdac0f
AlertType, // 5ab91217
AndroidKeyboardEvent, // e03becc8
Animated, // 09c0f98d
Animated, // a81c717c
AppConfig, // 35c0ca70
AppRegistry, // 7ef8e53a
AppState, // 12012be5
@@ -5920,9 +5921,9 @@ export {
BackPressEventName, // 4620fb76
BlurEvent, // 4ba4f941
BoxShadowValue, // b679703f
Button, // d7ffb46e
ButtonInstance, // 3f83f7e7
ButtonProps, // 35ffc98c
Button, // 2e36a068
ButtonInstance, // 0a11787b
ButtonProps, // 4a8a20e3
Clipboard, // 41addb89
CodegenTypes, // ab4986cc
ColorSchemeName, // 6615edd6
@@ -5940,15 +5941,16 @@ export {
DimensionsPayload, // 653bc26c
DisplayMetrics, // 1dc35cef
DisplayMetricsAndroid, // 872e62eb
DrawerLayoutAndroid, // 52018924
DrawerLayoutAndroid, // a8ced056
DrawerLayoutAndroidInstance, // c0694352
DrawerLayoutAndroidProps, // 8dfceaf9
DrawerLayoutAndroidProps, // e9a67dd7
DrawerSlideEvent, // c4ab8fba
DropShadowValue, // e9df2606
DynamicColorIOS, // d96c228c
DynamicColorIOSTuple, // 023ce58e
Easing, // 673080ba
EasingFunction, // 14aee4c0
EdgeInsetsProp, // e00d32fc
EdgeInsetsValue, // bd44afe6
EmitterSubscription, // de50c359
EnterKeyHintTypeOptions, // 8314de78
@@ -5957,9 +5959,9 @@ export {
EventSubscription, // b8d084aa
ExtendedExceptionData, // 5a6ccf5a
FilterFunction, // bf24c0e3
FlatList, // d98f538f
FlatListInstance, // 62941810
FlatListProps, // deadf762
FlatList, // b5cfde24
FlatListInstance, // 8f76f3b2
FlatListProps, // 3725656d
FocusEvent, // 850f1517
FontVariant, // 7c7558bb
GestureResponderEvent, // 14d3e77a
@@ -5970,24 +5972,25 @@ export {
IEventEmitter, // fbef6131
IOSKeyboardEvent, // e67bfe3a
IgnorePattern, // ec6f6ece
Image, // c6bb54ac
ImageBackground, // f4c8dcea
ImageBackgroundInstance, // 7c3cd110
ImageBackgroundProps, // 3b22066a
Image, // fba54a35
ImageBackground, // 1543bae2
ImageBackgroundInstance, // 610d9eed
ImageBackgroundProps, // ceb153c3
ImageErrorEvent, // 978933f4
ImageInstance, // 9a100753
ImageLoadEvent, // 77f0b718
ImageProgressEventIOS, // 445331a4
ImageProps, // 3765f681
ImageProps, // e8aecf89
ImagePropsAndroid, // 9fd9bcbb
ImagePropsBase, // 2cab4147
ImagePropsBase, // f5535cef
ImagePropsIOS, // 4a080668
ImageRequireSource, // 681d683b
ImageResizeMode, // d51106e2
ImageResolvedAssetSource, // f3060931
ImageSize, // 1c47cf88
ImageSource, // 48c7f316
ImageSourcePropType, // bfb5e5c6
ImageStyle, // b184020c
ImageStyle, // 4b7c1906
ImageURISource, // 016eb083
InputAccessoryView, // 9695d393
InputAccessoryViewProps, // d94dc290
@@ -5997,9 +6000,9 @@ export {
KeyEvent, // 20fa4267
KeyUpEvent, // 57f832c5
Keyboard, // 49414c97
KeyboardAvoidingView, // 0af358b6
KeyboardAvoidingViewInstance, // 1a3c8471
KeyboardAvoidingViewProps, // 83473aa1
KeyboardAvoidingView, // cf0307d2
KeyboardAvoidingViewInstance, // c4ca43a7
KeyboardAvoidingViewProps, // cf148633
KeyboardEvent, // c3f895d4
KeyboardEventEasing, // af4091c8
KeyboardEventName, // 59299ad6
@@ -6024,10 +6027,10 @@ export {
MeasureInWindowOnSuccessCallback, // a285f598
MeasureLayoutOnSuccessCallback, // 3592502a
MeasureOnSuccessCallback, // 82824e59
Modal, // f30cc19f
Modal, // c8c01498
ModalBaseProps, // 71945951
ModalInstance, // d466ce77
ModalProps, // 4eb5a731
ModalProps, // 9f060027
ModalPropsAndroid, // 515fb173
ModalPropsIOS, // 0e13cfcc
ModeChangeEvent, // f64bf69d
@@ -6062,15 +6065,15 @@ export {
PointerEvent, // ff599afe
PressabilityConfig, // faab5639
PressabilityEventHandlers, // 0b910091
Pressable, // d508cef4
Pressable, // f4911021
PressableAndroidRippleConfig, // ee32eaca
PressableInstance, // eebfe911
PressableProps, // f5bffd11
PressableProps, // 95d57db2
PressableStateCallbackType, // 9af36561
ProcessedColorValue, // 33f74304
ProgressBarAndroid, // 8ef8ba6a
ProgressBarAndroid, // 44a46d48
ProgressBarAndroidInstance, // ab545ef1
ProgressBarAndroidProps, // f31ec709
ProgressBarAndroidProps, // f20ebde5
PublicRootInstance, // 8040afd7
PublicTextInstance, // 6937c7bf
PushNotificationEventName, // 84e7e150
@@ -6078,9 +6081,9 @@ export {
PushNotificationPermissions, // c2e7ae4f
Rationale, // 5df1b1c1
ReactNativeVersion, // abd76827
RefreshControl, // 48160637
RefreshControlInstance, // f7d632ba
RefreshControlProps, // b028bb5a
RefreshControl, // 5b3465d2
RefreshControlInstance, // 8b4d078b
RefreshControlProps, // f8883f9a
RefreshControlPropsAndroid, // 99f64c97
RefreshControlPropsIOS, // 72a36381
Registry, // 6c39216d
@@ -6092,24 +6095,24 @@ export {
RootViewStyleProvider, // 8792d506
Runnable, // 594dd93a
Runnables, // 4367c557
SafeAreaView, // 963d85d0
SafeAreaView, // 47b1ede1
SafeAreaViewInstance, // 21dba39c
ScaledSize, // 07e417c7
ScrollEvent, // d7abdd0a
ScrollResponderType, // 8864c38f
ScrollResponderType, // 079145bb
ScrollToLocationParamsType, // d7ecdad1
ScrollView, // c67a52a8
ScrollViewImperativeMethods, // b4c3feed
ScrollViewInstance, // 971d4924
ScrollViewProps, // 3ab71e04
ScrollView, // 9c14c51c
ScrollViewImperativeMethods, // d3ff1532
ScrollViewInstance, // 1ba64600
ScrollViewProps, // c92ac7be
ScrollViewPropsAndroid, // 44210553
ScrollViewPropsIOS, // b7921e26
ScrollViewPropsIOS, // da991b9a
ScrollViewScrollToOptions, // 3313411e
SectionBase, // dca83594
SectionList, // e4cd2cce
SectionList, // 626263b4
SectionListData, // e0d79987
SectionListInstance, // 06be7c37
SectionListProps, // 983ca166
SectionListInstance, // 019cdaef
SectionListProps, // 4cb9dfa9
SectionListRenderItem, // 466e3e87
SectionListRenderItemInfo, // d809238e
Separators, // 6a45f7e3
@@ -6126,20 +6129,21 @@ export {
StatusBarProps, // b72a9127
StatusBarStyle, // 78f53eea
StyleProp, // fa0e9b4a
StyleSheet, // 29f1b323
StyleSheet, // ebb07d46
SubmitBehavior, // c4ddf490
Switch, // 370e8ea2
Switch, // b004beeb
SwitchChangeEvent, // 899635b1
SwitchInstance, // 3c50eec5
SwitchProps, // 61214431
SwitchProps, // ded81873
Systrace, // 626d178c
TVViewPropsIOS, // 330ce7b5
TargetedEvent, // 16e98910
TaskProvider, // 266dedf2
Text, // 17a6c136
Text, // 90eee1c6
TextContentType, // 239b3ecc
TextInput, // 8f39debf
TextInput, // d6b1ef70
TextInputAndroidProps, // 3f09ce49
TextInputBlurEvent, // b77af40e
TextInputChangeEvent, // f55eef98
TextInputContentSizeChangeEvent, // a27cd32a
TextInputEndEditingEvent, // e690b56b
@@ -6147,45 +6151,45 @@ export {
TextInputIOSProps, // 0d05a855
TextInputInstance, // 5a0c0e0d
TextInputKeyPressEvent, // 546c5d07
TextInputProps, // 899880a2
TextInputProps, // d989bb55
TextInputSelectionChangeEvent, // e58f2abc
TextInputSubmitEditingEvent, // 6bcb2aa5
TextInstance, // 05463a96
TextLayoutEvent, // 3f54186f
TextProps, // a7822140
TextProps, // 490e7cc7
TextStyle, // ab0f32ca
ToastAndroid, // 88a8969a
Touchable, // b280637f
TouchableHighlight, // 452aa27b
Touchable, // c15da0a2
TouchableHighlight, // 20ba0199
TouchableHighlightInstance, // b510c0eb
TouchableHighlightProps, // dc0126c9
TouchableNativeFeedback, // bee68787
TouchableNativeFeedbackInstance, // f66604fc
TouchableNativeFeedbackProps, // 91de1ed8
TouchableOpacity, // 0c1239fd
TouchableHighlightProps, // 337a9164
TouchableNativeFeedback, // c41fc93f
TouchableNativeFeedbackInstance, // e7895451
TouchableNativeFeedbackProps, // a645b648
TouchableOpacity, // 74a1b2c6
TouchableOpacityInstance, // b186055b
TouchableOpacityProps, // 4c5af3d2
TouchableWithoutFeedback, // 8d374ae1
TouchableWithoutFeedbackProps, // 65c8c30a
TouchableOpacityProps, // 1d3512ce
TouchableWithoutFeedback, // 61c63ada
TouchableWithoutFeedbackProps, // f4d62822
TransformsStyle, // 65e70f18
TurboModule, // dfe29706
TurboModuleRegistry, // 4ace6db2
UIManager, // a1a7cc01
UTFSequence, // ad625158
Vibration, // 31e4bbf8
View, // 6b216377
View, // 443391a0
ViewInstance, // ffde5573
ViewProps, // cbb6c0b5
ViewProps, // 013135a2
ViewPropsAndroid, // 03c17367
ViewPropsIOS, // 58ee19bf
ViewStyle, // e45056b1
VirtualViewMode, // 6be59722
VirtualizedList, // 68c7345e
VirtualizedListInstance, // 423ee7c0
VirtualizedListProps, // f05a76fd
VirtualizedListProps, // 29367911
VirtualizedSectionList, // 9fd9cd61
VirtualizedSectionListInstance, // 12b706d5
VirtualizedSectionListProps, // 283047f7
VirtualizedSectionListProps, // 6b9d9c05
WrapperComponentProvider, // 4b8c7962
codegenNativeCommands, // 628a7c0a
codegenNativeComponent, // 32a1bca6
+4
View File
@@ -63,6 +63,7 @@ export type {
export {default as Image} from './Libraries/Image/Image';
export type {ImageBackgroundInstance} from './Libraries/Image/ImageBackground';
export {default as ImageBackground} from './Libraries/Image/ImageBackground';
export type {ImageResizeMode} from './Libraries/Image/ImageResizeMode';
export type {InputAccessoryViewProps} from './Libraries/Components/TextInput/InputAccessoryView';
export {default as InputAccessoryView} from './Libraries/Components/TextInput/InputAccessoryView';
@@ -161,6 +162,7 @@ export type {
TextInputInstance,
TextInputIOSProps,
TextInputProps,
TextInputBlurEvent,
TextInputChangeEvent,
TextInputContentSizeChangeEvent,
TextInputEndEditingEvent,
@@ -198,6 +200,7 @@ export {default as TouchableWithoutFeedback} from './Libraries/Components/Toucha
export type {
AccessibilityActionEvent,
AccessibilityActionInfo,
AccessibilityProps,
AccessibilityRole,
AccessibilityState,
@@ -422,6 +425,7 @@ export type {
EdgeInsetsValue,
PointValue,
} from './Libraries/StyleSheet/StyleSheetTypes';
export type {EdgeInsetsProp} from './Libraries/StyleSheet/EdgeInsetsPropType';
export type {Insets} from './Libraries/StyleSheet/Rect';
export {default as StyleSheet} from './Libraries/StyleSheet/StyleSheet';