Collapsible header layout - Can't get same behavior on iOS and Android #3903
Unanswered
loiclienard
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Software Mansion's gods !
I'm seeking a little bit of help in order to get the same collapsible header layout behavior on iOS and Android. Right now, the actual implementation is working really well on iOS but not on Android and i'm a bit clueless on why it's happening and how i could make it work on both platform.
I started from a fresh Expo 54 template. Here is the branch and this is what I managed to get so far on iOS :
Screen.Recording.2026-01-07.at.16.34.30.mov
On Android, this is the non working behavior:
Screen.Recording.2026-01-07.at.16.37.21.mov
I'm aware that gestures handlings are different on both platform but I was expecting
Gesture.Simultaneousto work the same way on both platform.I'd like to know if (and how) I would be able to get the desired behavior on Android without getting too far from the iOS implementation.
Key requirements I impose myself :
The trick that makes iOS working great:
Gesture.Pan.onUpdate, It detects whenever the header is animating and usescrollTofromReanimatedto manually update the scroll position in order to get the illusion that the scrollable content is clipped to the top of the "card".and
Thanks for your help and advices ! 🙏
Beta Was this translation helpful? Give feedback.
All reactions