Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FlatList in react-native and react-native-gesture-handler, what difference?

Tags:

react-native

What difference between:

import { FlatList } from "react-native";

and

import { FlatList } from "react-native-gesture-handler";
like image 848
George Avatar asked May 14 '26 11:05

George


1 Answers

react-native-gesture-handler is more performant with gestures in comparison to react-native's, as they run on the native thread instead of the JS thread.

With react-native's gesture handler, JS handles the event and sends it through the bridge. react-native-gesture-handler will have the native thread directly handle the event.

like image 106
Jordan Daniels Avatar answered May 16 '26 17:05

Jordan Daniels



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!