Closed matjua17 closed 1 year ago
The useScrollViewOffset hook is only available in react-native-reanimated >= 2.11.0.
useScrollViewOffset
Should work with all react-native-reanimated 2 versions.
Error occurs: Undefined is not a function. Due to the availability of useScrollViewOffset only in >= 2.11.0 version of reanimated.
Thanks for opening this issue up. Exploring solution here: #3
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
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