react-native-reanimated
react-native-reanimated copied to clipboard
Added new useScrollViewOffset hook
Description
This new hook makes it easy to create animations based on the offset of a ScrollView.
Interface:
export function useScrollViewOffset(
aref: RefObject<Animated.ScrollView>
): SharedValue<number>
Checklist
- [x] Included code example that can be used to test this change
- [x] Updated TS types
- [ ] Added TS types tests
- [ ] Added unit / integration tests
- [x] Updated documentation
- [x] Ensured that CI passes