How do i to navigate to sub-route in the 2nd expo app? #824
Unanswered
iambharath87
asked this question in
Q&A
Replies: 1 comment
-
You cannot navigate between two distinctly different native apps using in-app navigation (regardless of framework). In Expo/React Native, an app is defined by having a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a mono-repo with the following structure.
Both of the "native" apps are expo apps using expo-router for navigation. Here are the routes defined for both the apps:
The
home
app has two routes:/
(index.tsx) and/credit-card
.The
credit-card
app has two routes:/
(index.tsx) and/details
.The
/credit-card
screen from the home app is basically a wrapper around theindex.tsx
of the credit-card app.I am trying to navigate from route
/
to/credit-card/details
page but i'm getting a "Unmatched route" error.Here is a video of this: https://user-images.githubusercontent.com/6663930/231235863-38f1acac-0029-4618-9cfe-cdb8d2568b12.mp4
Can someone please help me?
Minimal reproducible example
Here is a sample repo that shows the problem: https://github.com/iambharath87/expo-monorepo
To start the app, go to
/apps/native/home
and runyarn ios
Beta Was this translation helpful? Give feedback.
All reactions