-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Shared Element Transition on the New Architecture (feature flag) #7466
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
Conversation
|
Hey 👋 Just backlinking to the PR announcement tweet for demos and community comments: https://x.com/BBloniarz_/status/1919390653856829566 |
|
Hi @bartlomiejbloniarz nice work you are doing. Is there a way we can get a code demo of it in new Arch? Currently, I am unable to get it to work with the code sample provide in the docs. Thanks ❤️ |
|
@elozino-eryk you can see the set of examples by run |
packages/react-native-reanimated/apple/reanimated/apple/native/PlatformDepMethodsHolderImpl.mm
Outdated
Show resolved
Hide resolved
packages/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/SharedTransitions.cpp
Outdated
Show resolved
Hide resolved
|
@bartlomiejbloniarz, I've been following this PR, and I'm happy to see that it is now merged! Can you help me learn how I can test the new shared element transitions? |
|
@laurens-lamberts on iOS you need to also run |
Thanks for your prompt reply! I've deleted the ios folder before prebuilding with Expo again, so that must have installed pods again, right? No luck yet, but I can try again later this week. |
|
@laurens-lamberts Maybe expo is doing some aggressive caching there, and it's missing the new flag value? |
|
I just tried removing both Is there some logging I could enable to see what shared element transitions are detected / initiated? |
|
Hi @bartlomiejbloniarz - I am facing the exact same issue that @laurens-lamberts has highlighted. Tried expo prebuild --clean, pod install and cross checked the package.json - everything seems to be as per the doc. Looking forward to a potential solution, can't wait to try this out! |
|
Experiencing the same issue here, no luck getting shared transitions to work with expo. @weemundo / @laurens-lamberts did you figure out a solution? |
|
@wassgha I haven't looked into this in further detail yet. I hope to be able to troubleshoot this from January. |
|
So I tried run it in a new expo app, and it looks fine on my side. the only thing I had to do after adding the feature flag was to run |
|
Thanks for the pointers @bartlomiejbloniarz! I hope to test and report back soon. |
|
I ran the tests as you pointed out, using Reanimated I have this property configured on my Animated.Image (which works using the old arch); I've just tried logging the layout animations registered via I believe this is the fade-transition from my main screen to the I read something about an issue with the new SET when using in combination with a modal, but even when I remove the Then I tried setting the breakpoints on The breakpoint on Not sure if it is related, but the only Xcode logs I can find that might be related is the following; Do you have any suggestions on where to look next? |
|
Update; I just notice it starts to work when I remove my screen from the (react navigation) tab navigator that surrounded it. Do you have an idea why this could be the case? For our use case it would be great to keep the tab navigator in place. Also, I'm transitioning towards a transparentModal screen, and I find that during the entire SET the origin image is now being masked by a backdrop I've defined in the target screen, until it snaps in front of it on the last transition frame. With the old arch SET, this was not the case (the image transition happened on top of everything). Do you think we can make the transition happen on top again? |
|
Hi I will add these issues to the list of current limitations. The transparentModal is a known issue that will be fixed once we move the animated element from Thanks for looking into this, it's very helpful to see what issues people run into in real applications. |
|
I'm happy to help! We've applied two slight changes to our design to work around the pending issues;
If any of the issues is fixed, we will revert those to how they were. We'll be doing some more testing soon, and are planning to release an update of our app with the new transitions in January/February. Thanks for all your work on this! |
Summary
This PR brings back the Shared Element Transition feature to reanimated (within a limited scope and behind a feature flag).
Current limitations:
[SET] Modals) exampletransparentModalon iOS the transitioning view is obstructed by the outgoing screen. This will be fixed once we move from plugging it intoRootView, to plugging it into theWindowTest plan