File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
packages/react-native/Libraries/Components/Pressable Expand file tree Collapse file tree 1 file changed +9
-0
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 ,
You can’t perform that action at this time.
0 commit comments