jlyman / jlyman/RN-NavigationExperimental-Redux-Example

Nested routes / Tab reducer

Open
#4 9 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
341
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Awesome work, this example really helped me forward!
Now i'm stuck at nested routes with Redux and the new NavigationExperimental. In this example there are three routes: 'first', 'second' and 'third'. What would the example look like if there were 2 modules/tabs with nested routes (first, second, third)?

For example:
- Home
- Home First
- Home Second
- Home Third
- Settings
- Settings First
- Settings Second
- Settings Third

I read about the tabreducer and I think this is applicable here, but I can't really figure out how to use it with Redux.
Should there be a reducer per module/tab and then combined with combineReducers? Or should there be one reducer for all modules/tabs and their subroutes? Will this mean that there is a nested state tree?

Hope someone has an idea!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.