Skip to content

Instantly share code, notes, and snippets.

@CharlesMangwa
Last active September 12, 2018 03:43
Show Gist options
  • Save CharlesMangwa/a2df8c7cd6641d70eb78d719d6fd5dcf to your computer and use it in GitHub Desktop.
Save CharlesMangwa/a2df8c7cd6641d70eb78d719d6fd5dcf to your computer and use it in GitHub Desktop.
Main navigation sample with React Router Navigation
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