Skip to content

Commit ee36c67

Browse files
huntiemeta-codesync[bot]
authored andcommitted
Export additional prop/event types (#57278)
Summary: Pull Request resolved: #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
1 parent 142b617 commit ee36c67

2 files changed

Lines changed: 71 additions & 63 deletions

File tree

packages/react-native/ReactNativeApi.d.ts

Lines changed: 67 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<e62248f4d4932263a592c35ebf383e1a>>
7+
* @generated SignedSource<<6fd7172a54686bbab8a03359976ef63d>>
88
*
99
* This file was generated by scripts/js-api/build-types/index.js.
1010
*/
@@ -5892,23 +5892,24 @@ declare type WrapperComponentProvider = (
58925892
) => React.ComponentType<any>
58935893
export {
58945894
AccessibilityActionEvent, // a0d4daa0
5895+
AccessibilityActionInfo, // db47a917
58955896
AccessibilityInfo, // 23a3aa9b
5896-
AccessibilityProps, // 5a2836fc
5897+
AccessibilityProps, // 21f32d3a
58975898
AccessibilityRole, // f2f2e066
58985899
AccessibilityState, // b0c2b3f7
58995900
AccessibilityValue, // cf8bcb74
59005901
ActionSheetIOS, // b558559e
59015902
ActionSheetIOSOptions, // 1756eb5a
5902-
ActivityIndicator, // 2a0518e9
5903+
ActivityIndicator, // 0f796809
59035904
ActivityIndicatorInstance, // a82dd4e7
5904-
ActivityIndicatorProps, // f330d1dc
5905+
ActivityIndicatorProps, // a232e3ff
59055906
Alert, // 5bf12165
59065907
AlertButton, // bf1a3b60
59075908
AlertButtonStyle, // ec9fb242
59085909
AlertOptions, // a0cdac0f
59095910
AlertType, // 5ab91217
59105911
AndroidKeyboardEvent, // e03becc8
5911-
Animated, // 09c0f98d
5912+
Animated, // a81c717c
59125913
AppConfig, // 35c0ca70
59135914
AppRegistry, // 7ef8e53a
59145915
AppState, // 12012be5
@@ -5920,9 +5921,9 @@ export {
59205921
BackPressEventName, // 4620fb76
59215922
BlurEvent, // 4ba4f941
59225923
BoxShadowValue, // b679703f
5923-
Button, // d7ffb46e
5924-
ButtonInstance, // 3f83f7e7
5925-
ButtonProps, // 35ffc98c
5924+
Button, // 2e36a068
5925+
ButtonInstance, // 0a11787b
5926+
ButtonProps, // 4a8a20e3
59265927
Clipboard, // 41addb89
59275928
CodegenTypes, // ab4986cc
59285929
ColorSchemeName, // 6615edd6
@@ -5940,15 +5941,16 @@ export {
59405941
DimensionsPayload, // 653bc26c
59415942
DisplayMetrics, // 1dc35cef
59425943
DisplayMetricsAndroid, // 872e62eb
5943-
DrawerLayoutAndroid, // 52018924
5944+
DrawerLayoutAndroid, // a8ced056
59445945
DrawerLayoutAndroidInstance, // c0694352
5945-
DrawerLayoutAndroidProps, // 8dfceaf9
5946+
DrawerLayoutAndroidProps, // e9a67dd7
59465947
DrawerSlideEvent, // c4ab8fba
59475948
DropShadowValue, // e9df2606
59485949
DynamicColorIOS, // d96c228c
59495950
DynamicColorIOSTuple, // 023ce58e
59505951
Easing, // 673080ba
59515952
EasingFunction, // 14aee4c0
5953+
EdgeInsetsProp, // e00d32fc
59525954
EdgeInsetsValue, // bd44afe6
59535955
EmitterSubscription, // de50c359
59545956
EnterKeyHintTypeOptions, // 8314de78
@@ -5957,9 +5959,9 @@ export {
59575959
EventSubscription, // b8d084aa
59585960
ExtendedExceptionData, // 5a6ccf5a
59595961
FilterFunction, // bf24c0e3
5960-
FlatList, // d98f538f
5961-
FlatListInstance, // 62941810
5962-
FlatListProps, // deadf762
5962+
FlatList, // b5cfde24
5963+
FlatListInstance, // 8f76f3b2
5964+
FlatListProps, // 3725656d
59635965
FocusEvent, // 850f1517
59645966
FontVariant, // 7c7558bb
59655967
GestureResponderEvent, // 14d3e77a
@@ -5970,24 +5972,25 @@ export {
59705972
IEventEmitter, // fbef6131
59715973
IOSKeyboardEvent, // e67bfe3a
59725974
IgnorePattern, // ec6f6ece
5973-
Image, // c6bb54ac
5974-
ImageBackground, // f4c8dcea
5975-
ImageBackgroundInstance, // 7c3cd110
5976-
ImageBackgroundProps, // 3b22066a
5975+
Image, // fba54a35
5976+
ImageBackground, // 1543bae2
5977+
ImageBackgroundInstance, // 610d9eed
5978+
ImageBackgroundProps, // ceb153c3
59775979
ImageErrorEvent, // 978933f4
59785980
ImageInstance, // 9a100753
59795981
ImageLoadEvent, // 77f0b718
59805982
ImageProgressEventIOS, // 445331a4
5981-
ImageProps, // 3765f681
5983+
ImageProps, // e8aecf89
59825984
ImagePropsAndroid, // 9fd9bcbb
5983-
ImagePropsBase, // 2cab4147
5985+
ImagePropsBase, // f5535cef
59845986
ImagePropsIOS, // 4a080668
59855987
ImageRequireSource, // 681d683b
5988+
ImageResizeMode, // d51106e2
59865989
ImageResolvedAssetSource, // f3060931
59875990
ImageSize, // 1c47cf88
59885991
ImageSource, // 48c7f316
59895992
ImageSourcePropType, // bfb5e5c6
5990-
ImageStyle, // b184020c
5993+
ImageStyle, // 4b7c1906
59915994
ImageURISource, // 016eb083
59925995
InputAccessoryView, // 9695d393
59935996
InputAccessoryViewProps, // d94dc290
@@ -5997,9 +6000,9 @@ export {
59976000
KeyEvent, // 20fa4267
59986001
KeyUpEvent, // 57f832c5
59996002
Keyboard, // 49414c97
6000-
KeyboardAvoidingView, // 0af358b6
6001-
KeyboardAvoidingViewInstance, // 1a3c8471
6002-
KeyboardAvoidingViewProps, // 83473aa1
6003+
KeyboardAvoidingView, // cf0307d2
6004+
KeyboardAvoidingViewInstance, // c4ca43a7
6005+
KeyboardAvoidingViewProps, // cf148633
60036006
KeyboardEvent, // c3f895d4
60046007
KeyboardEventEasing, // af4091c8
60056008
KeyboardEventName, // 59299ad6
@@ -6024,10 +6027,10 @@ export {
60246027
MeasureInWindowOnSuccessCallback, // a285f598
60256028
MeasureLayoutOnSuccessCallback, // 3592502a
60266029
MeasureOnSuccessCallback, // 82824e59
6027-
Modal, // f30cc19f
6030+
Modal, // c8c01498
60286031
ModalBaseProps, // 71945951
60296032
ModalInstance, // d466ce77
6030-
ModalProps, // 4eb5a731
6033+
ModalProps, // 9f060027
60316034
ModalPropsAndroid, // 515fb173
60326035
ModalPropsIOS, // 0e13cfcc
60336036
ModeChangeEvent, // f64bf69d
@@ -6062,25 +6065,25 @@ export {
60626065
PointerEvent, // ff599afe
60636066
PressabilityConfig, // faab5639
60646067
PressabilityEventHandlers, // 0b910091
6065-
Pressable, // d508cef4
6068+
Pressable, // f4911021
60666069
PressableAndroidRippleConfig, // ee32eaca
60676070
PressableInstance, // eebfe911
6068-
PressableProps, // f5bffd11
6071+
PressableProps, // 95d57db2
60696072
PressableStateCallbackType, // 9af36561
60706073
ProcessedColorValue, // 33f74304
6071-
ProgressBarAndroid, // 8ef8ba6a
6074+
ProgressBarAndroid, // 44a46d48
60726075
ProgressBarAndroidInstance, // ab545ef1
6073-
ProgressBarAndroidProps, // f31ec709
6076+
ProgressBarAndroidProps, // f20ebde5
60746077
PublicRootInstance, // 8040afd7
60756078
PublicTextInstance, // 6937c7bf
60766079
PushNotificationEventName, // 84e7e150
60776080
PushNotificationIOS, // b4d1fe78
60786081
PushNotificationPermissions, // c2e7ae4f
60796082
Rationale, // 5df1b1c1
60806083
ReactNativeVersion, // abd76827
6081-
RefreshControl, // 48160637
6082-
RefreshControlInstance, // f7d632ba
6083-
RefreshControlProps, // b028bb5a
6084+
RefreshControl, // 5b3465d2
6085+
RefreshControlInstance, // 8b4d078b
6086+
RefreshControlProps, // f8883f9a
60846087
RefreshControlPropsAndroid, // 99f64c97
60856088
RefreshControlPropsIOS, // 72a36381
60866089
Registry, // 6c39216d
@@ -6092,24 +6095,24 @@ export {
60926095
RootViewStyleProvider, // 8792d506
60936096
Runnable, // 594dd93a
60946097
Runnables, // 4367c557
6095-
SafeAreaView, // 963d85d0
6098+
SafeAreaView, // 47b1ede1
60966099
SafeAreaViewInstance, // 21dba39c
60976100
ScaledSize, // 07e417c7
60986101
ScrollEvent, // d7abdd0a
6099-
ScrollResponderType, // 8864c38f
6102+
ScrollResponderType, // 079145bb
61006103
ScrollToLocationParamsType, // d7ecdad1
6101-
ScrollView, // c67a52a8
6102-
ScrollViewImperativeMethods, // b4c3feed
6103-
ScrollViewInstance, // 971d4924
6104-
ScrollViewProps, // 3ab71e04
6104+
ScrollView, // 9c14c51c
6105+
ScrollViewImperativeMethods, // d3ff1532
6106+
ScrollViewInstance, // 1ba64600
6107+
ScrollViewProps, // c92ac7be
61056108
ScrollViewPropsAndroid, // 44210553
6106-
ScrollViewPropsIOS, // b7921e26
6109+
ScrollViewPropsIOS, // da991b9a
61076110
ScrollViewScrollToOptions, // 3313411e
61086111
SectionBase, // dca83594
6109-
SectionList, // e4cd2cce
6112+
SectionList, // 626263b4
61106113
SectionListData, // e0d79987
6111-
SectionListInstance, // 06be7c37
6112-
SectionListProps, // 983ca166
6114+
SectionListInstance, // 019cdaef
6115+
SectionListProps, // 4cb9dfa9
61136116
SectionListRenderItem, // 466e3e87
61146117
SectionListRenderItemInfo, // d809238e
61156118
Separators, // 6a45f7e3
@@ -6126,66 +6129,67 @@ export {
61266129
StatusBarProps, // b72a9127
61276130
StatusBarStyle, // 78f53eea
61286131
StyleProp, // fa0e9b4a
6129-
StyleSheet, // 29f1b323
6132+
StyleSheet, // ebb07d46
61306133
SubmitBehavior, // c4ddf490
6131-
Switch, // 370e8ea2
6134+
Switch, // b004beeb
61326135
SwitchChangeEvent, // 899635b1
61336136
SwitchInstance, // 3c50eec5
6134-
SwitchProps, // 61214431
6137+
SwitchProps, // ded81873
61356138
Systrace, // 626d178c
61366139
TVViewPropsIOS, // 330ce7b5
61376140
TargetedEvent, // 16e98910
61386141
TaskProvider, // 266dedf2
6139-
Text, // 17a6c136
6142+
Text, // 90eee1c6
61406143
TextContentType, // 239b3ecc
6141-
TextInput, // 8f39debf
6144+
TextInput, // d6b1ef70
61426145
TextInputAndroidProps, // 3f09ce49
6146+
TextInputBlurEvent, // b77af40e
61436147
TextInputChangeEvent, // f55eef98
61446148
TextInputContentSizeChangeEvent, // a27cd32a
61456149
TextInputEndEditingEvent, // e690b56b
61466150
TextInputFocusEvent, // 19851a88
61476151
TextInputIOSProps, // 0d05a855
61486152
TextInputInstance, // 5a0c0e0d
61496153
TextInputKeyPressEvent, // 546c5d07
6150-
TextInputProps, // 899880a2
6154+
TextInputProps, // d989bb55
61516155
TextInputSelectionChangeEvent, // e58f2abc
61526156
TextInputSubmitEditingEvent, // 6bcb2aa5
61536157
TextInstance, // 05463a96
61546158
TextLayoutEvent, // 3f54186f
6155-
TextProps, // a7822140
6159+
TextProps, // 490e7cc7
61566160
TextStyle, // ab0f32ca
61576161
ToastAndroid, // 88a8969a
6158-
Touchable, // b280637f
6159-
TouchableHighlight, // 452aa27b
6162+
Touchable, // c15da0a2
6163+
TouchableHighlight, // 20ba0199
61606164
TouchableHighlightInstance, // b510c0eb
6161-
TouchableHighlightProps, // dc0126c9
6162-
TouchableNativeFeedback, // bee68787
6163-
TouchableNativeFeedbackInstance, // f66604fc
6164-
TouchableNativeFeedbackProps, // 91de1ed8
6165-
TouchableOpacity, // 0c1239fd
6165+
TouchableHighlightProps, // 337a9164
6166+
TouchableNativeFeedback, // c41fc93f
6167+
TouchableNativeFeedbackInstance, // e7895451
6168+
TouchableNativeFeedbackProps, // a645b648
6169+
TouchableOpacity, // 74a1b2c6
61666170
TouchableOpacityInstance, // b186055b
6167-
TouchableOpacityProps, // 4c5af3d2
6168-
TouchableWithoutFeedback, // 8d374ae1
6169-
TouchableWithoutFeedbackProps, // 65c8c30a
6171+
TouchableOpacityProps, // 1d3512ce
6172+
TouchableWithoutFeedback, // 61c63ada
6173+
TouchableWithoutFeedbackProps, // f4d62822
61706174
TransformsStyle, // 65e70f18
61716175
TurboModule, // dfe29706
61726176
TurboModuleRegistry, // 4ace6db2
61736177
UIManager, // a1a7cc01
61746178
UTFSequence, // ad625158
61756179
Vibration, // 31e4bbf8
6176-
View, // 6b216377
6180+
View, // 443391a0
61776181
ViewInstance, // ffde5573
6178-
ViewProps, // cbb6c0b5
6182+
ViewProps, // 013135a2
61796183
ViewPropsAndroid, // 03c17367
61806184
ViewPropsIOS, // 58ee19bf
61816185
ViewStyle, // e45056b1
61826186
VirtualViewMode, // 6be59722
61836187
VirtualizedList, // 68c7345e
61846188
VirtualizedListInstance, // 423ee7c0
6185-
VirtualizedListProps, // f05a76fd
6189+
VirtualizedListProps, // 29367911
61866190
VirtualizedSectionList, // 9fd9cd61
61876191
VirtualizedSectionListInstance, // 12b706d5
6188-
VirtualizedSectionListProps, // 283047f7
6192+
VirtualizedSectionListProps, // 6b9d9c05
61896193
WrapperComponentProvider, // 4b8c7962
61906194
codegenNativeCommands, // 628a7c0a
61916195
codegenNativeComponent, // 32a1bca6

packages/react-native/index.js.flow

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export type {
6363
export {default as Image} from './Libraries/Image/Image';
6464
export type {ImageBackgroundInstance} from './Libraries/Image/ImageBackground';
6565
export {default as ImageBackground} from './Libraries/Image/ImageBackground';
66+
export type {ImageResizeMode} from './Libraries/Image/ImageResizeMode';
6667

6768
export type {InputAccessoryViewProps} from './Libraries/Components/TextInput/InputAccessoryView';
6869
export {default as InputAccessoryView} from './Libraries/Components/TextInput/InputAccessoryView';
@@ -161,6 +162,7 @@ export type {
161162
TextInputInstance,
162163
TextInputIOSProps,
163164
TextInputProps,
165+
TextInputBlurEvent,
164166
TextInputChangeEvent,
165167
TextInputContentSizeChangeEvent,
166168
TextInputEndEditingEvent,
@@ -198,6 +200,7 @@ export {default as TouchableWithoutFeedback} from './Libraries/Components/Toucha
198200

199201
export type {
200202
AccessibilityActionEvent,
203+
AccessibilityActionInfo,
201204
AccessibilityProps,
202205
AccessibilityRole,
203206
AccessibilityState,
@@ -422,6 +425,7 @@ export type {
422425
EdgeInsetsValue,
423426
PointValue,
424427
} from './Libraries/StyleSheet/StyleSheetTypes';
428+
export type {EdgeInsetsProp} from './Libraries/StyleSheet/EdgeInsetsPropType';
425429
export type {Insets} from './Libraries/StyleSheet/Rect';
426430
export {default as StyleSheet} from './Libraries/StyleSheet/StyleSheet';
427431

0 commit comments

Comments
 (0)