bamlab / react-native-image-header-scroll-view

ScrollView with an image in header which becomes a navbar
MIT License
990 stars 94 forks source link

'onScroll' not usable when 'useNativeDriver' is 'true'. #111

Open YoranRoels opened 3 years ago

YoranRoels commented 3 years ago

I recently tried making the change to 'useNativeDriver' for performance reasons.

However, I use 'onScroll' to check when the end of the ScrollView has been reached (I need to do this here since our UI requires a FlatList as a child of this component so I need this component to handle the position to help pass that to the FlatList).

I've looked through the code and it seems like 'useNativeDriver' makes it so that there is no way to check the native scroll event.

Am I missing something or is it currently not possible to check the ScrollView's native event with 'useNativeDriver' enabled?