react-native-pager-view icon indicating copy to clipboard operation
react-native-pager-view copied to clipboard

If the content of the page is react native webview, the vertical scroll is lagging on android.

Open rveruna opened this issue 3 years ago • 3 comments

Environment

package version
react-native-webview 11.23.0
react-native-pager-view 5.4.24
react-native 0.69.6

Description

When a react native webview is added to a page, the vertical scroll on android is lagging or instead of scrolling vertically, it will activate a horizontal scroll.

https://user-images.githubusercontent.com/15161568/199974619-70022b39-856a-4e64-9cfc-abcf98d1ffd7.mov

Reproducible Demo

https://snack.expo.dev/@verunar/webview-in-pagerview-not-scrolling

rveruna avatar Nov 04 '22 12:11 rveruna

We faced the same issue. Added a workaround which reduces swipe sensitivity on the ViewPager when there is a webview as a child: https://gist.github.com/AlShevelev/ea43096e8f66b0ec45a0ec0dd1e8cacc. It is not ideal solution, so probably we will switch to Flatlist in long term.

tothvoj-gl avatar Jan 23 '23 08:01 tothvoj-gl

We faced the same issue. Added a workaround which reduces swipe sensitivity on the ViewPager when there is a webview as a child: https://gist.github.com/AlShevelev/ea43096e8f66b0ec45a0ec0dd1e8cacc. It is not ideal solution, so probably we will switch to Flatlist in long term.

Can you give me your example reduce sensitivity with react native?

ntit365 avatar Apr 04 '23 03:04 ntit365

We patched the library using https://github.com/callstack/react-native-pager-view/issues/164#issuecomment-965032619

tothvoj-gl avatar Apr 04 '23 06:04 tothvoj-gl