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

Add sticky header example #7002

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Feb 10, 2025

Summary

This PR adds an example with sticky header implemented using useAnimatedScrollHandler (although useScrollViewOffset is also recommended) and useAnimatedStyle to align the vertical translation of a view with ScrollView content offset.

Source code has been adapted from the repro in #6992 by @Flewp.

Test plan

@tomekzaw tomekzaw added this pull request to the merge queue Feb 10, 2025
Merged via the queue into main with commit 8377590 Feb 10, 2025
9 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/add-sticky-header-example branch February 10, 2025 12:48
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.

2 participants