callstack / react-native-pager-view

React Native wrapper for the Android ViewPager and iOS UIPageViewController.
MIT License
2.75k stars 420 forks source link

UI freezing issues with dynamic page list #874

Open samducker opened 2 months ago

samducker commented 2 months ago

Environment

Latest expo SDK with expo router, react native 0.74.5, react native pager view latest, zod latest, and react query latest. My app is cross platform but I've currently only been testing the issues in iOS.

Description

Summary I'm developing a diary app using react-native-pager-view, expo-router, and react-query with infinite horizontal scrolling. I'm encountering UI freezes and inconsistent animations after multiple page transitions.

Current Issues

UI freezes after several swipes, requiring app restart. Page transition animations stop working after multiple navigations.

Expected Behavior

Smooth infinite scrolling without freezes. Consistent animations across all page transitions. Efficient data fetching for current and adjacent pages

Reproducible Demo Repository

https://github.com/houseofduck/expo-diary-pager-demo

MrRefactor commented 2 weeks ago

Looking into this.