Modal that contains a Stack of its own #512
Replies: 5 comments 6 replies
-
FYI, I was able to figure this out. I just followed the steps outlined in the solution in the Stack Overflow case but used the _layout files to get the modals to work. Expo Router is really pretty amazing! I appreciate all the work the expo team has done on it! |
Beta Was this translation helpful? Give feedback.
-
Try this: import {
// Import the creation function
createBottomSheetNavigator,
// Import the types
BottomSheetNavigationOptions,
} from "@th3rdwave/react-navigation-bottom-sheet";
import { withLayoutContext } from "expo-router";
const { Navigator } = createBottomSheetNavigator();
// This can be used like `<BottomSheet />`
export const BottomSheet = withLayoutContext<
BottomSheetNavigationOptions,
typeof Navigator
>(Navigator); And use (This code is copied from the official expo discord, sent from beacon) |
Beta Was this translation helpful? Give feedback.
-
if your issue is solved please close it as solved to sort then out :) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I think this need to be documented, It's a pretty common situation. |
Beta Was this translation helpful? Give feedback.
-
This stack overflow issue asks the question I'm looking to answer and shows how to do it in React Navigation.
Stack Overflow case
I have two questions.
Any help would be appreciated!
Thanks,
Beta Was this translation helpful? Give feedback.
All reactions