PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
829 stars 160 forks source link

feat: adds `useCurrentTabScrollY` hook #265

Closed andreialecu closed 2 years ago

andreialecu commented 2 years ago

Closes #263 Closes #203

BREAKING CHANGE: useHeaderMeasurements now returns the height as an Animated.SharedValue

andreialecu commented 2 years ago

https://user-images.githubusercontent.com/697707/172867074-6d10c9f1-a737-4218-af88-f980fa495ed0.mp4

linweiboy commented 1 year ago

How should I use useCurrentTScrollY to get the offset of Y when I use FlatList?

andreialecu commented 1 year ago

How should I use useCurrentTScrollY to get the offset of Y when I use FlatList?

https://github.com/PedroBern/react-native-collapsible-tab-view/blob/7a81951bcab66f9b59c66e1944ecceaf096fd2da/example/src/AnimatedHeader.tsx#L21-L25