react-native-raw-bottom-sheet icon indicating copy to clipboard operation
react-native-raw-bottom-sheet copied to clipboard

minClosingHeight not working

Open linhCrystal opened this issue 4 years ago • 1 comments

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?

linhCrystal avatar Jun 16 '20 09:06 linhCrystal

I was wondering the same.

Rodrigo816 avatar Jun 23 '20 13:06 Rodrigo816