jmurzy / jmurzy/react-router-native
Same routes shared across multiple tabs.
- Dominant language
- JavaScript
- Stars
- 639
- Forks
- 38
- PR merge metrics
- No merged PRs in 30d
Description
I have a use case where there are many routes that are shared across multiple tab stacks.
Example:
``` javascript
```
`/friends` shows list of friends.
`/me` shows my account.
`/user/:userId` shows a profile of a user.
`/user/:userId/followers` shows a list of followers for a user.
Note that user can navigate to `user profile` and `user followers` from both `friends` and `me` tab.
They also share the same url pattern.
Since all routes are pretty much somehow connected to each other (think of Facebook app), almost all routes can be accessed from any tab stacks.
Desired behavior would be not to jump around between tabs, but stay in the current one if there is a matching route under the current tab, then push the matching route to the current tab stack.
Also, it would be nice if it can be done without copying common routes to each tab stack.
Contributor guide
Assessment
This issue has not been assessed yet.