@@ -35,6 +35,12 @@ type Props = {
3535 enabledGestureInteraction ?: boolean
3636 enabledHeaderGestureInteraction ?: boolean
3737 enabledContentGestureInteraction ?: boolean
38+
39+ /**
40+ * Defines if bottom sheet content responds to taps. Defaults to true.
41+ */
42+ enabledContentTapInteraction ?: boolean
43+
3844 /**
3945 * If false blocks snapping using snapTo method. Defaults to true.
4046 */
@@ -273,6 +279,7 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
273279 enabledGestureInteraction : true ,
274280 enabledHeaderGestureInteraction : true ,
275281 enabledContentGestureInteraction : true ,
282+ enabledContentTapInteraction : true ,
276283 enabledInnerScrolling : true ,
277284 springConfig : { } ,
278285 innerGestureHandlerRefs : [
@@ -746,7 +753,11 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
746753 < Animated . View >
747754 < TapGestureHandler
748755 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+ }
750761 onHandlerStateChange = { this . handleTap }
751762 simultaneousHandlers = { this . props . simultaneousHandlers }
752763 >
0 commit comments