Skip to content
Advertisement

How to stop swipe in ScrollView?

look this video of current scrolling behavior. i want, as soon as finger is lifted from screen, to disable scrolling.

Edit: the video shows a user scrolling through a list. When the finger is lifted from the screen, you see the scrolling continues up or down for a short time.

Advertisement

Answer

I think what you need is:

<ScrollView
  bounces={false}
  />

This way when you scroll finished, the scroll animation will not continue and immediately stopped.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement