Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds useCurrentTabScrollY hook #265

Merged
merged 8 commits into from
Jun 14, 2022
Merged

Conversation

andreialecu
Copy link
Collaborator

Closes #263
Closes #203

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

@andreialecu
Copy link
Collaborator Author

Simulator.Screen.Recording.-.iPhone.13.-.2022-06-09.at.17.07.13.mp4

@andreialecu andreialecu merged commit 9671587 into main Jun 14, 2022
@andreialecu andreialecu deleted the feat-usecurrenttabscrolly branch June 14, 2022 08:02
@linweiboy
Copy link

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

@andreialecu
Copy link
Collaborator Author

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

const scrollY = useCurrentTabScrollY()
const scrollYText = useDerivedValue(
() => `Scroll Y is: ${scrollY.value.toFixed(2)}`
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tabs.FlatList onScroll not firing onScroll and some other props of ScrollView are not available
2 participants