react-native-modalize: Swiping & ovelayPressed is not working in android
Describe the bug I’m using the modalize component to trigger in a flat list item tap.This is my code.Please give a solution.
<Modalize ref={this.modalizeRef}
// snapPoint={300}
panGestureComponentEnabled={true}
panGestureEnabled={true}
withReactModal={true}
modalHeight={200}
><Text>...your content</Text></Modalize>
Reproduce
- Create a demo on https://snack.expo.io to reproduce the issue.
- Add gif screenshots to help explain your issue.
Dependencies:
- react-native-modalize [e.g. 1.3.7-rc.19]
- react-native [e.g. 0.62.0]
- react-native-gesture-handler [e.g. 1.6.0]
- expo/react-navigation/react-native-navigation: [e.g. expo@37.0.3]
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 22 (7 by maintainers)
import { GestureHandlerRootView } from ‘react-native-gesture-handler’;
Wrap your app.tsx into GestureHandlerRootView with a style flex 1
@DevanshaniR Have you tried this? https://docs.swmansion.com/react-native-gesture-handler/docs/#android