Skip to content

Commit 99cc5b0

Browse files
committed
revert: get rid of GestureHandlerRootView
1 parent e5387fa commit 99cc5b0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import Animated from 'react-native-reanimated'
44
import {
55
PanGestureHandler,
66
TapGestureHandler,
7-
GestureHandlerRootView,
87
State as GestureState,
98
} from 'react-native-gesture-handler'
109

@@ -293,8 +292,6 @@ function withDecaying(
293292
])
294293
}
295294

296-
const GestureHandlerWrapper = GestureHandlerRootView || View
297-
298295
export default class BottomSheetBehavior extends React.Component<Props, State> {
299296
static defaultProps = {
300297
overdragResistanceFactor: 0,
@@ -797,7 +794,7 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
797794
render() {
798795
const { borderRadius } = this.props
799796
return (
800-
<GestureHandlerWrapper>
797+
<>
801798
<Animated.View
802799
style={{
803800
height: '100%',
@@ -1061,7 +1058,7 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
10611058
)}
10621059
</View>
10631060
</Animated.View>
1064-
</GestureHandlerWrapper>
1061+
</>
10651062
)
10661063
}
10671064
}

0 commit comments

Comments
 (0)