Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swipeable extremely slow inside large FlatList #596

Closed
sintylapse opened this issue May 2, 2019 · 8 comments
Closed

Swipeable extremely slow inside large FlatList #596

sintylapse opened this issue May 2, 2019 · 8 comments

Comments

@sintylapse
Copy link

sintylapse commented May 2, 2019

Swipeable is extremely slow on first render of large FlatList (70 items) and when rotating device/simulator. When you open a screen with FlatList of Swipeable items and immediately try to swipe, the animation will be laggy. The same thing when you rotate device/simulator.

I tried the latest example inside the repo https://github.com/kmagiera/react-native-gesture-handler/tree/master/Example , the only thing I change in code - I added 70 items instead of 8. Here is the video

ScreenRecording20190502at2-3

It makes impossible to use Swipeable component in real-world applications. Is there any way to use swipeable functionality in a performant way? Maybe using with react-native-reanimated?

@geroale
Copy link

geroale commented Oct 11, 2019

Same problem here. @sintylapse have you solved this in any way?

@marf
Copy link

marf commented Oct 11, 2019

Same problem here, there is a performance drop with large flatlists.

@sintylapse
Copy link
Author

sintylapse commented Oct 11, 2019

@geroale, @marf I used react-native-interactable instead. It is the best solution I found so far, no performance issues. I also tried to use react-native-gesture-handler combined with react-native-reanimated, but this library also has performance issues with large lists

@marf
Copy link

marf commented Oct 16, 2019

Thank you bery much for your hints, with react-native-interactable we do not have any performance issues!

@lander854
Copy link

Same problem here

@jasonrichdarmawan
Copy link

Same problem here with only 40 items. FlatList with Swipeable example's github repository

@voids
Copy link

voids commented Dec 21, 2020

Same problem, but I use Flipkart/recyclerlistview instead FlastList, it works well.

@kkafar
Copy link
Member

kkafar commented Mar 31, 2022

Closing as #1531 duplicates this issue. Discussion can be moved there

@kkafar kkafar closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants