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<<421f4cd1a35a7be6057a22dbd76d8e2f >>
7
+ * @generated SignedSource<<dd585e0eb751b40c79874ec533fe1f50 >>
8
8
*
9
9
* This file was generated by scripts/js-api/build-types/index.js.
10
10
*/
@@ -3758,6 +3758,7 @@ declare type PressableAndroidRippleConfig = {
3758
3758
declare type PressableBaseProps = {
3759
3759
readonly android_disableSound ?: boolean
3760
3760
readonly android_ripple ?: PressableAndroidRippleConfig
3761
+ readonly blockNativeResponder ?: boolean
3761
3762
readonly cancelable ?: boolean
3762
3763
readonly children ?:
3763
3764
| ( ( state : PressableStateCallbackType ) => React . ReactNode )
@@ -6077,7 +6078,7 @@ export {
6077
6078
PointerEvent , // 3c454015
6078
6079
Pressable , // 3c6e4eb9
6079
6080
PressableAndroidRippleConfig , // 42bc9727
6080
- PressableProps , // 4d37b376
6081
+ PressableProps , // 00d5ea16
6081
6082
PressableStateCallbackType , // 9af36561
6082
6083
ProcessedColorValue , // 33f74304
6083
6084
ProgressBarAndroid , // 03e66cf5
You can’t perform that action at this time.
0 commit comments