Skip to content

zhangmq/navigation-rfc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Move state outside NavigationRootContainer, so you can combine navigator state into your redux reducer.

NavigationRootContainer modified props

  • navState navigation state in redux store
  • onNavigation navigation handler

NavigationReducer wrapper

import { NavigationReducer } from 'navigation-rfc';

const initialState = {routes: ['first page'], index: 0};

export default function navigation(state = initialState, action = {}) {
    return NavigationReducer(state, action);
}

About

Modified as npm package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%