Skip to content

bottom-sheet with snapPoints values greater than 97% does not open #105

@Angelk90

Description

@Angelk90

Bug

Hi @gorhom :
If I put only one snapPoints with values higher than "97%", does not open (98%, 99%, 100%).
See the code to understand better.

Environment info

Library Version
@gorhom/bottom-sheet 2.0.0-alpha.4
react-native 0.63.3
react-native-reanimated 1.13.2
react-native-gesture-handler 1.9.0

Reproducible sample code

const bottomSheetTheme = useCallback(
      (newValue, id) => {
        present(<ThemeModal darkMode={darkMode} onChange={handleThemeChange} />, {
          snapPoints: ['98%'], //<-99%, 100%
          animationDuration: 800,
          overlayComponent: BottomSheetOverlay,
          overlayOpacity: 0.5,
          dismissOnOverlayPress: true,
          animationEasing: Easing.out(Easing.exp),
          handleComponent: handleModal,
        });
      },
      [settings],
  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodalRelated to BottomSheetModal

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions