gorhom / react-native-bottom-sheet

A performant interactive bottom sheet with fully configurable options 🚀
https://gorhom.dev/react-native-bottom-sheet/
MIT License
6.77k stars 745 forks source link

[v4] GestureHandlerRootView prevents swiping using react-native-swiper-flatlist #1267

Closed jaakola-aleksanteri closed 1 year ago

jaakola-aleksanteri commented 1 year ago

Bug

GestureHandlerRootView prevents swiping using react-native-swiper-flatlist

Environment info

Library Version
@gorhom/bottom-sheet 4
react-native 0.70.1
react-native-reanimated 2.12.0
react-native-gesture-handler 2.8.0

Steps To Reproduce

  1. Install both libraries and use them the way I used them in the snippet below
  2. Swiping doesn't work on Android

Describe what you expected to happen:

  1. Swiping works on Android as it works on iOS

Reproducible sample code

   <GestureHandlerRootView style={{ flex: 1 }}>
      <BottomSheetModalProvider>
        <Button
          onPress={handlePresentModalPress}
          title="Present Modal"
          color="black"
        />

        <BottomSheetModal
          ref={bottomSheetModalRef}
          index={1}
          snapPoints={snapPoints}
          onChange={handleSheetChanges}>
          <View style={styles.container}>
            <SwiperFlatList
              showPagination
              data={colors}
              renderItem={({ item }) => (
                <View style={[styles.child, { backgroundColor: item }]}>
                  <Text style={styles.text}>{item}</Text>
                </View>
              )}
            />
          </View>
        </BottomSheetModal>
      </BottomSheetModalProvider>
    </GestureHandlerRootView>
atiq4112 commented 1 year ago

@gorhom I have also facing same issue I am using BottomSheetScrollView and I am facing this issue in android. In android get stuck other points instead of snap points during dragging

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.

R0LLeX commented 3 weeks ago

still relevant