-
-
Notifications
You must be signed in to change notification settings - Fork 570
feat: Add sheet translation Y (position) with Reanimated hook #2902
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
base: main
Are you sure you want to change the base?
Conversation
Thanks, I'll look into it by the end of the week |
Will this work without Reanimated (with the vanilla Animated API)? |
@SimpleCreations haven't tried but it should -- it's the same logic as the transition animation. |
Thank you! Also, let me know if I should remove the footer implementation on IOS -- you guys might have better solution for it. Or feel free to modify/improve. |
@kkafar any interest in getting this merged? |
Description
This PR introduces new Event for tracking the translation Y value of the sheet when being dragged or presented. This is particularly useful on some use-cases where we want to animate separate views based on the sheet's position e.g. Apple Maps app.
Also added support for Footer on IOS.
Changes
sheetDismissible
prop -- or can we reusegestureEnabled
?TODO:
Test code and steps to reproduce
WIP
IOS
Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2025-05-06.at.01.19.31.mp4
Android
Screen_recording_20250506_013500.webm
Checklist