react-native-reanimated icon indicating copy to clipboard operation
react-native-reanimated copied to clipboard

Added new useScrollViewOffset hook

Open Kwasow opened this issue 3 years ago • 0 comments

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

Kwasow avatar Aug 03 '22 12:08 Kwasow