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

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

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1k
Forks
101
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.