APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

Usage of inline objects #455

Open KDederichs opened 3 years ago

KDederichs commented 3 years ago

Hey, I'm currently trying to eliminate re-renders in our app and noticed that the KeyboardAwareFlatList is causing some by defining objects in line like here: https://github.com/APSL/react-native-keyboard-aware-scroll-view/blob/fb40649a9c84aa23d6a55355e9e0e432795967a6/lib/KeyboardAwareHOC.js#L520

I think it would be good to check the library for unnecessary re-renders and remove them, cause especially with lists those can be nasty.