Skip to content

Commit b208056

Browse files
committed
reduce public type churn
1 parent 9fa06bf commit b208056

3 files changed

Lines changed: 45 additions & 54 deletions

File tree

packages/react-native/Libraries/Components/Pressable/Pressable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ function Pressable({
343343
// Must be false when disabled so touches reach native ancestors. Cannot
344344
// guard this on the native side via _isJSResponder — it's set async and
345345
// races with touchesBegan on fast taps.
346+
// $FlowFixMe[prop-missing] internal prop, intentionally absent from public ViewProps
346347
blockNativeResponder={disabled !== true && blockNativeResponder}>
347348
{typeof children === 'function' ? children({pressed}) : children}
348349
{__DEV__ ? <PressabilityDebugView color="red" hitSlop={hitSlop} /> : null}

packages/react-native/Libraries/Components/View/ViewPropTypes.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -502,15 +502,6 @@ type ViewBaseProps = Readonly<{
502502
*/
503503
removeClippedSubviews?: ?boolean,
504504

505-
/**
506-
* When true, prevents native ancestor views (UIKit responder chain) from
507-
* receiving touch events when this view handles a press. Without this, UIKit
508-
* delivers touches independently to every view that received touchesBegan:,
509-
* so parent views fire touchesEnded: even when a child Pressable handles the
510-
* press.
511-
*/
512-
blockNativeResponder?: ?boolean,
513-
514505
/**
515506
* Defines the order in which descendant elements receive accessibility focus.
516507
* The elements in the array represent nativeID values for the respective

packages/react-native/ReactNativeApi.d.ts

Lines changed: 44 additions & 45 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<<0ff5693800c50074fbf1c08e88c50093>>
7+
* @generated SignedSource<<42200de8ca10d30541e23b67547d9a13>>
88
*
99
* This file was generated by scripts/js-api/build-types/index.js.
1010
*/
@@ -5659,7 +5659,6 @@ declare class ViewabilityHelper_default {
56595659
}
56605660
declare type ViewabilityHelperT = typeof ViewabilityHelper_default
56615661
declare type ViewBaseProps = {
5662-
readonly blockNativeResponder?: boolean
56635662
readonly children?: React.ReactNode
56645663
readonly collapsable?: boolean
56655664
readonly collapsableChildren?: boolean
@@ -5912,16 +5911,16 @@ export {
59125911
AccessibilityValue, // cf8bcb74
59135912
ActionSheetIOS, // b558559e
59145913
ActionSheetIOSOptions, // 1756eb5a
5915-
ActivityIndicator, // d7fc42fd
5914+
ActivityIndicator, // 0f796809
59165915
ActivityIndicatorInstance, // a82dd4e7
5917-
ActivityIndicatorProps, // 571c60c9
5916+
ActivityIndicatorProps, // a232e3ff
59185917
Alert, // 5bf12165
59195918
AlertButton, // bf1a3b60
59205919
AlertButtonStyle, // ec9fb242
59215920
AlertOptions, // a0cdac0f
59225921
AlertType, // 5ab91217
59235922
AndroidKeyboardEvent, // e03becc8
5924-
Animated, // a8925b59
5923+
Animated, // 1ac00401
59255924
AppConfig, // 35c0ca70
59265925
AppRegistry, // 7ef8e53a
59275926
AppState, // 12012be5
@@ -5953,9 +5952,9 @@ export {
59535952
DimensionsPayload, // 653bc26c
59545953
DisplayMetrics, // 1dc35cef
59555954
DisplayMetricsAndroid, // 872e62eb
5956-
DrawerLayoutAndroid, // 751bb72f
5955+
DrawerLayoutAndroid, // a8ced056
59575956
DrawerLayoutAndroidInstance, // c0694352
5958-
DrawerLayoutAndroidProps, // 8ff2c62d
5957+
DrawerLayoutAndroidProps, // e9a67dd7
59595958
DrawerSlideEvent, // c4ab8fba
59605959
DropShadowValue, // e9df2606
59615960
DynamicColorIOS, // d96c228c
@@ -5971,9 +5970,9 @@ export {
59715970
EventSubscription, // b8d084aa
59725971
ExtendedExceptionData, // 5a6ccf5a
59735972
FilterFunction, // bf24c0e3
5974-
FlatList, // f3bcf76d
5975-
FlatListInstance, // e7a79099
5976-
FlatListProps, // 48c58790
5973+
FlatList, // b5cfde24
5974+
FlatListInstance, // 8f76f3b2
5975+
FlatListProps, // 3725656d
59775976
FocusEvent, // 850f1517
59785977
FontVariant, // 7c7558bb
59795978
GestureResponderEvent, // 14d3e77a
@@ -5984,17 +5983,17 @@ export {
59845983
IEventEmitter, // fbef6131
59855984
IOSKeyboardEvent, // e67bfe3a
59865985
IgnorePattern, // ec6f6ece
5987-
Image, // b2561656
5988-
ImageBackground, // ea7e7e08
5989-
ImageBackgroundInstance, // 677f9154
5990-
ImageBackgroundProps, // 7354b374
5986+
Image, // fba54a35
5987+
ImageBackground, // 1543bae2
5988+
ImageBackgroundInstance, // 610d9eed
5989+
ImageBackgroundProps, // ceb153c3
59915990
ImageErrorEvent, // 978933f4
59925991
ImageInstance, // 9a100753
59935992
ImageLoadEvent, // 77f0b718
59945993
ImageProgressEventIOS, // 445331a4
5995-
ImageProps, // e685c003
5994+
ImageProps, // e8aecf89
59965995
ImagePropsAndroid, // 9fd9bcbb
5997-
ImagePropsBase, // dabc9112
5996+
ImagePropsBase, // f5535cef
59985997
ImagePropsIOS, // 4a080668
59995998
ImageRequireSource, // 681d683b
60005999
ImageResizeMode, // d51106e2
@@ -6012,9 +6011,9 @@ export {
60126011
KeyEvent, // 20fa4267
60136012
KeyUpEvent, // 57f832c5
60146013
Keyboard, // 49414c97
6015-
KeyboardAvoidingView, // 8a6b2692
6016-
KeyboardAvoidingViewInstance, // 85c50e87
6017-
KeyboardAvoidingViewProps, // f721c5a8
6014+
KeyboardAvoidingView, // cf0307d2
6015+
KeyboardAvoidingViewInstance, // c4ca43a7
6016+
KeyboardAvoidingViewProps, // cf148633
60186017
KeyboardEvent, // c3f895d4
60196018
KeyboardEventEasing, // af4091c8
60206019
KeyboardEventName, // 59299ad6
@@ -6039,10 +6038,10 @@ export {
60396038
MeasureInWindowOnSuccessCallback, // a285f598
60406039
MeasureLayoutOnSuccessCallback, // 3592502a
60416040
MeasureOnSuccessCallback, // 82824e59
6042-
Modal, // 325aa23a
6041+
Modal, // c8c01498
60436042
ModalBaseProps, // 71945951
60446043
ModalInstance, // d466ce77
6045-
ModalProps, // bbf2cddf
6044+
ModalProps, // 9f060027
60466045
ModalPropsAndroid, // 515fb173
60476046
ModalPropsIOS, // 0e13cfcc
60486047
ModeChangeEvent, // f64bf69d
@@ -6077,25 +6076,25 @@ export {
60776076
PointerEvent, // ff599afe
60786077
PressabilityConfig, // faab5639
60796078
PressabilityEventHandlers, // 0b910091
6080-
Pressable, // 699b380d
6079+
Pressable, // f4911021
60816080
PressableAndroidRippleConfig, // ee32eaca
60826081
PressableInstance, // eebfe911
6083-
PressableProps, // ce74ed6d
6082+
PressableProps, // 95d57db2
60846083
PressableStateCallbackType, // 9af36561
60856084
ProcessedColorValue, // 33f74304
6086-
ProgressBarAndroid, // 54e0bdce
6085+
ProgressBarAndroid, // 44a46d48
60876086
ProgressBarAndroidInstance, // ab545ef1
6088-
ProgressBarAndroidProps, // 3409491a
6087+
ProgressBarAndroidProps, // f20ebde5
60896088
PublicRootInstance, // 8040afd7
60906089
PublicTextInstance, // 6937c7bf
60916090
PushNotificationEventName, // 84e7e150
60926091
PushNotificationIOS, // b4d1fe78
60936092
PushNotificationPermissions, // c2e7ae4f
60946093
Rationale, // 5df1b1c1
60956094
ReactNativeVersion, // abd76827
6096-
RefreshControl, // 9981464e
6097-
RefreshControlInstance, // a473cb11
6098-
RefreshControlProps, // d1474044
6095+
RefreshControl, // 5b3465d2
6096+
RefreshControlInstance, // 8b4d078b
6097+
RefreshControlProps, // f8883f9a
60996098
RefreshControlPropsAndroid, // 99f64c97
61006099
RefreshControlPropsIOS, // 72a36381
61016100
Registry, // 6c39216d
@@ -6107,24 +6106,24 @@ export {
61076106
RootViewStyleProvider, // 8792d506
61086107
Runnable, // 594dd93a
61096108
Runnables, // 4367c557
6110-
SafeAreaView, // a133c7b4
6109+
SafeAreaView, // 47b1ede1
61116110
SafeAreaViewInstance, // 21dba39c
61126111
ScaledSize, // 07e417c7
61136112
ScrollEvent, // d7abdd0a
6114-
ScrollResponderType, // 41a19f80
6113+
ScrollResponderType, // 079145bb
61156114
ScrollToLocationParamsType, // d7ecdad1
6116-
ScrollView, // 2339fb4f
6117-
ScrollViewImperativeMethods, // 7a01fc0d
6118-
ScrollViewInstance, // 51251f11
6119-
ScrollViewProps, // b416f503
6115+
ScrollView, // 9c14c51c
6116+
ScrollViewImperativeMethods, // d3ff1532
6117+
ScrollViewInstance, // 1ba64600
6118+
ScrollViewProps, // c92ac7be
61206119
ScrollViewPropsAndroid, // 44210553
61216120
ScrollViewPropsIOS, // da991b9a
61226121
ScrollViewScrollToOptions, // 3313411e
61236122
SectionBase, // dca83594
6124-
SectionList, // 17c3ec79
6123+
SectionList, // 626263b4
61256124
SectionListData, // e0d79987
6126-
SectionListInstance, // cdbbc39f
6127-
SectionListProps, // c2d6578e
6125+
SectionListInstance, // 019cdaef
6126+
SectionListProps, // 4cb9dfa9
61286127
SectionListRenderItem, // 466e3e87
61296128
SectionListRenderItemInfo, // d809238e
61306129
Separators, // 6a45f7e3
@@ -6143,17 +6142,17 @@ export {
61436142
StyleProp, // fa0e9b4a
61446143
StyleSheet, // ebb07d46
61456144
SubmitBehavior, // c4ddf490
6146-
Switch, // f145ee86
6145+
Switch, // b004beeb
61476146
SwitchChangeEvent, // 899635b1
61486147
SwitchInstance, // 3c50eec5
6149-
SwitchProps, // f99eb847
6148+
SwitchProps, // ded81873
61506149
Systrace, // 626d178c
61516150
TVViewPropsIOS, // 330ce7b5
61526151
TargetedEvent, // 16e98910
61536152
TaskProvider, // 266dedf2
61546153
Text, // 90eee1c6
61556154
TextContentType, // 239b3ecc
6156-
TextInput, // e104fe9a
6155+
TextInput, // d6b1ef70
61576156
TextInputAndroidProps, // 3f09ce49
61586157
TextInputBlurEvent, // b77af40e
61596158
TextInputChangeEvent, // f55eef98
@@ -6163,7 +6162,7 @@ export {
61636162
TextInputIOSProps, // 0d05a855
61646163
TextInputInstance, // 5a0c0e0d
61656164
TextInputKeyPressEvent, // 546c5d07
6166-
TextInputProps, // 9690cda6
6165+
TextInputProps, // d989bb55
61676166
TextInputSelectionChangeEvent, // e58f2abc
61686167
TextInputSubmitEditingEvent, // 6bcb2aa5
61696168
TextInstance, // 05463a96
@@ -6189,19 +6188,19 @@ export {
61896188
UIManager, // a1a7cc01
61906189
UTFSequence, // ad625158
61916190
Vibration, // 31e4bbf8
6192-
View, // 89b0e520
6191+
View, // 443391a0
61936192
ViewInstance, // ffde5573
6194-
ViewProps, // 7e922820
6193+
ViewProps, // 013135a2
61956194
ViewPropsAndroid, // 03c17367
61966195
ViewPropsIOS, // 58ee19bf
61976196
ViewStyle, // e45056b1
61986197
VirtualViewMode, // 6be59722
61996198
VirtualizedList, // 68c7345e
62006199
VirtualizedListInstance, // 423ee7c0
6201-
VirtualizedListProps, // 3596559d
6200+
VirtualizedListProps, // 29367911
62026201
VirtualizedSectionList, // 9fd9cd61
62036202
VirtualizedSectionListInstance, // 12b706d5
6204-
VirtualizedSectionListProps, // 0124d272
6203+
VirtualizedSectionListProps, // 6b9d9c05
62056204
WrapperComponentProvider, // 4b8c7962
62066205
codegenNativeCommands, // 628a7c0a
62076206
codegenNativeComponent, // 32a1bca6

0 commit comments

Comments
 (0)