th3rdwave / react-navigation-bottom-sheet

MIT License
428 stars 19 forks source link

Android: Swipe-to-close doesn't work #15

Open frozencap opened 1 year ago

frozencap commented 1 year ago

Swipe-to-close the BottomSheetModal doesn't work neither on Emulators nor on physical devices. Handle just doesn't respond.

Could there be a common gotcha going on here? My navigator is as vanilla as it gets, except for a backdrop

  const renderBackdrop = useCallback(
    (props: BottomSheetBackdropProps) => (
      <BottomSheetBackdrop
        {...props}
        appearsOnIndex={0}
        disappearsOnIndex={-1}
        opacity={0.8}
        pressBehavior="close"
      />
    ),
    [],
  );