gusgard / react-native-swiper-flatlist

👆 Swiper component implemented with FlatList using Hooks & Typescript + strict automation tests with Detox
Apache License 2.0
512 stars 95 forks source link

SwiperFlatList not swipeable in gorhom/bottom-sheet on Android #153

Closed jaakola-aleksanteri closed 1 year ago

jaakola-aleksanteri commented 1 year ago

React Native version: 0.70.6

Steps To Reproduce

  1. Check my linked repository and try press "PRESENT MODAL"
  2. Try to swipe

Describe what you expected to happen:

Swiping on Android would work as it works on iOS

Snack, code example, screenshot, or link to a repository:

https://github.com/jaakola-aleksanteri/react-native-swiper-gorhom-modal-bug

jaakola-aleksanteri commented 1 year ago

I have traced the bug to the GestureHandlerRootView from react-native-gesture-handler. I think one possible fix could be using FlatList from react-native-gesture-handler. https://gorhom.github.io/react-native-bottom-sheet/troubleshooting

gusgard commented 1 year ago

@jaakola-aleksanteri thanks for the example, I will add support for react-native-gesture-handler in the next release ( probably next week )

Related to https://github.com/gusgard/react-native-swiper-flatlist/issues/150

gusgard commented 1 year ago

@jaakola-aleksanteri Added useReactNativeGestureHandler