Replies: 3 comments
-
that seems right. what if you did have you tried logging |
Beta Was this translation helpful? Give feedback.
-
side note: i don’t think animate presence is performant enough for such a top level animation. what if you instead just absolute positioned a view and animated it in / out somehow? or perhaps a reanimated 3 layout transition would be better |
Beta Was this translation helpful? Give feedback.
-
Was trying to achieve this with reanimated's layout transitions, but can't seem to be able to replicate Could you expand on Logged the pathname, it updates correctly. Actual exit and enter animations do get triggered, but "previous view / slot" is not persisted for exit animation, it changes to new one right away while it is exiting. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to create simple "view" transition when expo's route changes, so far got to code below. It does animate out and in as expected when pathname changes, but content of the page changes instantly i.e. when exit animation starts, new content is already rendered on the page. I was expecting
exitBeforeEnter
to preserve existing content (kinda like<PreviousSlot />
or something like that), but perhaps I'm missing something here?Curious to see if anyone was able to achieve this effect.
Beta Was this translation helpful? Give feedback.
All reactions