react-native-raw-bottom-sheet
react-native-raw-bottom-sheet copied to clipboard
minClosingHeight not working
Why after animate animatedHeight
to minClosingHeight
, modalVisible
set to fail?
Animated.timing(animatedHeight, {
useNativeDriver: false,
toValue: minClosingHeight,
duration: closeDuration
}).start(() => {
pan.setValue({ x: 0, y: 0 });
this.setState({
modalVisible: visible,
animatedHeight: new Animated.Value(0)
});
if (typeof onClose === "function") onClose(props);
});
Shouldn't modal still visible and user can drag up to open?
I was wondering the same.