Skip to content

Commit 2b3f77e

Browse files
committed
Revert "feat: added accessibility overrides support (gorhom#1288)(by @Mahmoud-SK)"
This reverts commit 2dea730
1 parent d1a64c7 commit 2b3f77e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/components/bottomSheetBackdrop/BottomSheetBackdrop.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React, { memo, useCallback, useMemo, useRef, useState } from 'react';
2-
import { ViewProps } from 'react-native';
1+
import React, { memo, useCallback, useMemo, useState } from 'react';
2+
import type { ViewProps } from 'react-native';
33
import Animated, {
44
interpolate,
55
Extrapolate,
@@ -36,7 +36,6 @@ const BottomSheetBackdropComponent = ({
3636
}: BottomSheetDefaultBackdropProps) => {
3737
//#region hooks
3838
const { snapToIndex, close } = useBottomSheet();
39-
const isMounted = useRef(false);
4039
//#endregion
4140

4241
//#region defaults
@@ -68,8 +67,7 @@ const BottomSheetBackdropComponent = ({
6867
}, [snapToIndex, close, disappearsOnIndex, pressBehavior, onPress]);
6968
const handleContainerTouchability = useCallback(
7069
(shouldDisableTouchability: boolean) => {
71-
isMounted.current &&
72-
setPointerEvents(shouldDisableTouchability ? 'none' : 'auto');
70+
setPointerEvents(shouldDisableTouchability ? 'none' : 'auto');
7371
},
7472
[]
7573
);
@@ -117,7 +115,6 @@ const BottomSheetBackdropComponent = ({
117115
//#endregion
118116

119117
return pressBehavior !== 'none' ? (
120-
// @ts-ignore
121118
<TapGestureHandler onGestureEvent={gestureHandler}>
122119
<Animated.View
123120
style={containerStyle}

0 commit comments

Comments
 (0)