-
-
Notifications
You must be signed in to change notification settings - Fork 917
Closed
Labels
bugSomething isn't workingSomething isn't workingmodalRelated to BottomSheetModalRelated to BottomSheetModal
Description
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
Labels
bugSomething isn't workingSomething isn't workingmodalRelated to BottomSheetModalRelated to BottomSheetModal
