codeherence / react-native-header

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

useScrollViewOffset hook is only in react-native-reanimated >= 2.11.0 available #4

Closed matjua17 closed 1 year ago

matjua17 commented 1 year ago

Description

The useScrollViewOffset hook is only available in react-native-reanimated >= 2.11.0.

Expected behavior

Should work with all react-native-reanimated 2 versions.

Actual behavior

Error occurs: Undefined is not a function. Due to the availability of useScrollViewOffset only in >= 2.11.0 version of reanimated.

Environment

react-native-header v0.6.0
Platform & OS (if applicable) iOS/Android/Web
react-native-reanimated < v2.11.0
react-native-safe-area-context v4.5.0
e-younan commented 1 year ago

Thanks for opening this issue up. Exploring solution here: #3

e-younan commented 1 year ago

I just released a fix for this. See 0.7.0-rc.0 or install it with:

yarn add @codeherence/react-native-header@0.7.0-rc.0
e-younan commented 1 year ago

3