Closed Scr3nt closed 1 year ago
Was this resolved @Scr3nt? I am having the exact same issue. My top layout is a slot, and nested in that at a lower level I have a stack layout where I want to introduce a modal like this. When I add it, I get a white flicker when I navigate to said screens.
this is my app architecture, slot _layout in app, and stack/modal layout in app/(home)/(create-event)
@Scr3nt I fixed it, you cant use slot with stack later on. replace your slot with this:
<Stack screenOptions={{ headerShown: false, animation: "none" }} />
works the same then
Which package manager are you using? (Yarn is recommended)
yarn
Summary
I use expo router v2 after upgrading from expo 48 to expo 49
When I want to use multiple stack layouts, I get a flicker when I change layout. If I don't use layouts, I don't have any problems, but then I don't have a transition. (You can see the 2 cases in videos)
Minimal reproducible example
Here is my structure :
my main layout :
my 2 others layouts :
the videos :
https://github.com/expo/router/assets/56580186/3776aa12-0223-4eab-9318-d3d9eeea36df
https://github.com/expo/router/assets/56580186/156e8d79-32a2-435e-9f6d-9ced9b3cf611