Skip to content

Commit

Permalink
revert: get rid of GestureHandlerRootView
Browse files Browse the repository at this point in the history
  • Loading branch information
osdnk committed Aug 14, 2020
1 parent e5387fa commit 99cc5b0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Animated from 'react-native-reanimated'
import {
PanGestureHandler,
TapGestureHandler,
GestureHandlerRootView,
State as GestureState,
} from 'react-native-gesture-handler'

Expand Down Expand Up @@ -293,8 +292,6 @@ function withDecaying(
])
}

const GestureHandlerWrapper = GestureHandlerRootView || View

export default class BottomSheetBehavior extends React.Component<Props, State> {
static defaultProps = {
overdragResistanceFactor: 0,
Expand Down Expand Up @@ -797,7 +794,7 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
render() {
const { borderRadius } = this.props
return (
<GestureHandlerWrapper>
<>
<Animated.View
style={{
height: '100%',
Expand Down Expand Up @@ -1061,7 +1058,7 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
)}
</View>
</Animated.View>
</GestureHandlerWrapper>
</>
)
}
}

0 comments on commit 99cc5b0

Please sign in to comment.