Last active
September 12, 2018 03:43
-
-
Save CharlesMangwa/a2df8c7cd6641d70eb78d719d6fd5dcf to your computer and use it in GitHub Desktop.
Main navigation sample with React Router Navigation
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
import React from 'react' | |
import { Card, Navigation } from 'react-router-navigation' | |
import App from '@scenes/App' | |
import Auth from '@scenes/Auth' | |
import Launch from '@scenes/Launch' | |
import Welcome from '@scenes/Welcome' | |
const Root = () => ( | |
<Navigation hideNavBar> | |
<Card path="/launch" component={Launch} /> | |
<Card path="/auth" component={Auth} /> | |
<Card path="/welcome" component={Welcome} /> | |
<Card path="/app" component={App} /> | |
</Navigation> | |
) | |
export default Root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment