react-native-refreshable-flatlist icon indicating copy to clipboard operation
react-native-refreshable-flatlist copied to clipboard

Performance issues

Open andrekovac opened this issue 7 years ago • 5 comments

I'm experiencing some performance errors in the console of the react-native debugger of the kind '[Violation] 'message' handler took XXXms' where XXX gets up to 767ms.

The FlatList I am using contains many images. The messages occur after I release at the bottom, i.e. when the onRelease callback is called.

Does anyone else experience these problems?

andrekovac avatar Nov 02 '17 16:11 andrekovac

could you please give a demo repo that can reproduce this issue?

razor1895 avatar Nov 03 '17 02:11 razor1895

I am also experiencing serious issues with performance. Will see if there is an improvement on release. Im on 0.43

EDIT I swapped out the regular indicator for the custom indicator, and added useNativeDriver: true to the timing statements, and there is a drastic improvement. The layout is still all over the place though. Maybe add to readme how to recreate the demo in your gif?

stokesbga avatar Nov 09 '17 23:11 stokesbga

@stokesbga Thanks for your reply and I will provide a example project about how to create custom indicator

razor1895 avatar Nov 13 '17 02:11 razor1895

https://gist.github.com/razor1895/2e755135af960752c164fad62f169ec9 here's the code will shows the same demo in the gif

razor1895 avatar Dec 04 '17 07:12 razor1895

Yes, I also noticed major performance issue when I try to wrap this with native-base components. List are not getting rendered properly

anil1712 avatar Feb 01 '18 07:02 anil1712