Is possible to show the sheet route directly without a "base" route? #380
-
|
I'm using Expo Router to create my Sheet routes, but it seems to require an index (non-sheet) route first. Since I need some of these sheets in different locations, I can't have this initial index route, I need to present the sheet directly. Is it possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Unfortunately this is required since sheets have to have a "screen" that it can sit on. This is by design from react-navigation, you can't just insert your own custom navigator within other navigator. I recommend wrapping your app or your main navigation stack as the main content of the sheet navigator. OR you could just opt-out from sheet navigator and just use inline sheets. |
Beta Was this translation helpful? Give feedback.
Unfortunately this is required since sheets have to have a "screen" that it can sit on. This is by design from react-navigation, you can't just insert your own custom navigator within other navigator. I recommend wrapping your app or your main navigation stack as the main content of the sheet navigator. OR you could just opt-out from sheet navigator and just use inline sheets.