Open Pietro-Putelli opened 2 years ago
@Pietro-Putelli I had the same problem, I discovered that by passing initialWindowMetrics
to SafeAreaProvider the problem disappear, I guess that if you don't the component will renderer nothing during the initial calculation
🐛 Bug Report
In the app I need to use Redux and SafeAreaContext, therefore I created a ScreenWrapper component and wrap all screens into it, to provide the right contexts to all of them. Then when I try to create a sharedElement transition, using showModal, and not push because I need a transparent background, the showModal animation don't work, it works only when dismissing.
Expected behavior
The sharedElement transition should perform exactly as it does using push.
Actual Behavior
Using showModal, for the reason I've explained before, the sharedElement animation for opening (for dismissing it actually works) it doesn't work, I mean it's replaced by a cross fade transition.
Here's the code:
Maybe I've made mistakes with the wrapper logic. Thank you