Open kylegillen opened 1 year ago
Facing same issue. In fact, on android every element transitions to start of the screen(x: 0, y: 0). Works fine on iOS.
I'm also facing the same issue, and it's affecting iOS too.
Facing the same issue but unrelated to status bar. The view randomly changes position before and after the transition.
“I am going through the same problem version: 3.6.1
Hey 👋 Thank you for the report! Shared Element Transition is still an experimental feature, but we currently working on fixing SET's issues.
What might help is to avoid using SafeAreaView and instead set top padding or whatever you need offset by using the useSafeAreaInsets() hook.
Description
Using the new Shared Transition API on a new project is causing a jump due to the status bar seemingly not being taken into account when transitioning on Android.
Using React Navigation 6.1.6 with a Native Stack Navigator (6.9.12) and employing a Shared Transition between the screen is causing the glitch shown in the video below:
https://user-images.githubusercontent.com/711457/225827314-86b487cd-e629-44d9-a15f-c8512f2da5cc.mov
Following is the code pasted in the
App.tsx
file of a new project:Steps to reproduce
Snack or a link to a repository
https://github.com/nextriot/reanimated-shared-transition-android-bug
Reanimated version
3.0.2
React Native version
0.71.4
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Android emulator
Device model
Galaxy Nexus
Acknowledgements
Yes