DEV Community

loading...

Discussion on: react-native-bottomsheet-reanimated

Collapse
kennymanman profile image
kennymanman

Hey how do i onpress this?

Collapse
saffellikhan profile image
Saif Ali Khan

if you want to open the modal just use the initial snap points.

For Example: snapPoints={[200, 100, 0]}

this.refs.BottomSheet.current.snapTo(200) // To Open Full Modal in onPress Function add value of 200;

this.refs.BottomSheet.current.snapTo(0) // To Close Modal change the value to 0;

Hope it helps :)