Skip to content

Instantly share code, notes, and snippets.

@waliurjs
Created September 27, 2018 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waliurjs/a3f2b9acc8d7c612a3b13809d8f56b3c to your computer and use it in GitHub Desktop.
Save waliurjs/a3f2b9acc8d7c612a3b13809d8f56b3c to your computer and use it in GitHub Desktop.
const defaultReducer = Reducer(Actions);
const reducerCreate = () => {
return (state, action) => {
// console.log('reducer: ACTION:', action);
return defaultReducer(state, action);
};
};
export const RootNavigator = () => {
return (
<Router
createReducer={reducerCreate}
>
<Overlay key="Overlay">
<Modal
key="ModalWrap"
hideNavBar
>
<Stack key="appStack" hideNavBar={true}>
<Scene key="Splash" component={Splash} />
<Scene key="Demo" component={Demo} />
<Stack key="OnboardStack" hideNavBar>
<Scene key="Intro" component={Intro} />
<Scene key="Register" component={Register} />
<Scene key="Verify" component={Verify} />
</Stack>
</Stack>
<Scene key="ChoiceModal" component={ChoiceModal} />
<Scene key="ShopListModal" component={ShopListModal} />
<Scene key="Tutorials" component={Tutorials} />
</Modal>
</Overlay>
</Router>
)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment