React-native-gesture-handler: Swipeable extremely slow inside large FlatList

Created on 2 May 2019  路  7Comments  路  Source: software-mansion/react-native-gesture-handler

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?

Performance Swipeable

Most helpful comment

@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

All 7 comments

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

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

@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

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

Same problem here

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brentvatne picture brentvatne  路  4Comments

wcandillon picture wcandillon  路  4Comments

brentvatne picture brentvatne  路  5Comments

rgangopadhya picture rgangopadhya  路  4Comments

nguyenhose picture nguyenhose  路  4Comments