Created
September 27, 2018 07:03
-
-
Save waliurjs/a3f2b9acc8d7c612a3b13809d8f56b3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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