@@ -35,6 +35,12 @@ type Props = {
35
35
enabledGestureInteraction ?: boolean
36
36
enabledHeaderGestureInteraction ?: boolean
37
37
enabledContentGestureInteraction ?: boolean
38
+
39
+ /**
40
+ * Defines if bottom sheet content responds to taps. Defaults to true.
41
+ */
42
+ enabledContentTapInteraction ?: boolean
43
+
38
44
/**
39
45
* If false blocks snapping using snapTo method. Defaults to true.
40
46
*/
@@ -273,6 +279,7 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
273
279
enabledGestureInteraction : true ,
274
280
enabledHeaderGestureInteraction : true ,
275
281
enabledContentGestureInteraction : true ,
282
+ enabledContentTapInteraction : true ,
276
283
enabledInnerScrolling : true ,
277
284
springConfig : { } ,
278
285
innerGestureHandlerRefs : [
@@ -746,7 +753,11 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
746
753
< Animated . View >
747
754
< TapGestureHandler
748
755
ref = { this . tapRef }
749
- enabled = { this . props . enabledGestureInteraction && this . props . enabledContentGestureInteraction }
756
+ enabled = {
757
+ this . props . enabledGestureInteraction &&
758
+ this . props . enabledContentGestureInteraction &&
759
+ this . props . enabledContentTapInteraction
760
+ }
750
761
onHandlerStateChange = { this . handleTap }
751
762
simultaneousHandlers = { this . props . simultaneousHandlers }
752
763
>
0 commit comments