Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React native web scrollview snap?

I'm using scrollview with react native web and I am trying to get the scrollview to snap into place however it just scroll like normal. I have tried using these props but it isn't working.

horizontal= {true}
decelerationRate={0}
snapToInterval={200} //your element width
snapToAlignment={"center"}
like image 697
Adrian Johnson Avatar asked Apr 14 '26 22:04

Adrian Johnson


1 Answers

Unfortunately this does not seem to be currently implemented :(

Source: https://github.com/necolas/react-native-web/issues/1250

There is always pagingEnabled={true} but this is not exatcly the same thing.

like image 80
Matt T Avatar answered Apr 16 '26 16:04

Matt T



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!