codeherence / react-native-header

A high-performance, cross-platform animated header component for React Native applications.
MIT License
218 stars 15 forks source link

fix: remove useScrollViewOffset offset in favor of useAnimatedScrollHandler #3

Closed e-younan closed 1 year ago

e-younan commented 1 year ago

Description

The internal scroll containers (i.e., ScrollView, FlatList, SectionList) have been modified to use the useAnimatedScrollHandler instead.

Motivation and Context

The reason this change was made was because the previously-used hook useScrollViewOffset is only available on react-native-reanimated >= 2.11.0.

How Has This Been Tested?

Tested on example application.

Types of changes

Checklist: