Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): adjust bottom-sheet horizontal gestures #2018

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/components/BottomSheetWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const BottomSheetWrapper = forwardRef(
// https://github.com/gorhom/react-native-bottom-sheet/issues/770#issuecomment-1072113936
// do not activate BottomSheet if swipe horizontally, this allows using Swiper inside of it
const activeOffsetX = useMemo(() => [-999, 999], []);
const activeOffsetY = useMemo(() => [-5, 5], []);
const activeOffsetY = useMemo(() => [-10, 10], []);

useEffect(() => {
if (data.isOpen) {
Expand Down Expand Up @@ -156,8 +156,7 @@ const BottomSheetWrapper = forwardRef(
backgroundComponent={backgroundComponent}
handleIndicatorStyle={handleIndicatorStyle}
handleStyle={styles.handle}
animateOnMount
enablePanDownToClose
enablePanDownToClose={true}
keyboardBlurBehavior="restore"
ref={bottomSheetRef}
index={index}
Expand Down
Loading