File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Libraries/Components/Pressable Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,12 @@ type PressableBaseProps = $ReadOnly<{
116
116
*/
117
117
onPressOut ?: ?( event : GestureResponderEvent ) => mixed ,
118
118
119
+ /**
120
+ * Whether to prevent any other native components from becoming responder
121
+ * while this pressable is responder.
122
+ */
123
+ blockNativeResponder ?: ?boolean ,
124
+
119
125
/**
120
126
* Either view styles or a function that receives a boolean reflecting whether
121
127
* the component is currently pressed and returns view styles.
@@ -183,6 +189,7 @@ function Pressable({
183
189
'aria-expanded' : ariaExpanded ,
184
190
'aria-label' : ariaLabel ,
185
191
'aria-selected' : ariaSelected ,
192
+ blockNativeResponder,
186
193
cancelable,
187
194
children,
188
195
delayHoverIn,
@@ -294,10 +301,12 @@ function Pressable({
294
301
onPressOut ( event ) ;
295
302
}
296
303
} ,
304
+ blockNativeResponder ,
297
305
} ) ,
298
306
[
299
307
android_disableSound ,
300
308
android_rippleConfig ,
309
+ blockNativeResponder ,
301
310
cancelable ,
302
311
delayHoverIn ,
303
312
delayHoverOut ,
Original file line number Diff line number Diff line change 4
4
* This source code is licensed under the MIT license found in the
5
5
* LICENSE file in the root directory of this source tree.
6
6
*
7
- * @generated SignedSource<<56f048751e6094736be604305b9c6f02 >>
7
+ * @generated SignedSource<<1f77cd57f1bd57ae59c61a1cc6a58d81 >>
8
8
*
9
9
* This file was generated by scripts/js-api/build-types/index.js.
10
10
*/
@@ -3759,6 +3759,7 @@ declare type PressableAndroidRippleConfig = {
3759
3759
declare type PressableBaseProps = {
3760
3760
readonly android_disableSound ?: boolean
3761
3761
readonly android_ripple ?: PressableAndroidRippleConfig
3762
+ readonly blockNativeResponder ?: boolean
3762
3763
readonly cancelable ?: boolean
3763
3764
readonly children ?:
3764
3765
| ( ( state : PressableStateCallbackType ) => React . ReactNode )
@@ -6078,7 +6079,7 @@ export {
6078
6079
PointerEvent , // 3c454015
6079
6080
Pressable , // 3c6e4eb9
6080
6081
PressableAndroidRippleConfig , // 42bc9727
6081
- PressableProps , // 4d37b376
6082
+ PressableProps , // 00d5ea16
6082
6083
PressableStateCallbackType , // 9af36561
6083
6084
ProcessedColorValue , // 33f74304
6084
6085
ProgressBarAndroid , // 03e66cf5
You can’t perform that action at this time.
0 commit comments