简体   繁体   中英

How to stop motion in a Flatlist in react Native?

I would like to know if there is any possible way to stop the motion of the FlatList even if the user is not touching the screen. I just want to make the implemention like Facebook does in the feed news, I am currently using onEndReach in order to fetch more data, but if the user scroll really fast the motion keep going and going, that's why I need to stop the motion when the final is reached.

There is a property that handle the motion when the user is scrolling and it is pagingEnabled which might help you on iOS version. But in my particular case it was a that in the FlatList there was a wrapper, and cause that weird behavior.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM