jmurzy / jmurzy/react-router-native

Same routes shared across multiple tabs.

Open
#25 4 comments 0 reactions 0 assignees View on GitHub
question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.