Created
May 10, 2019 01:21
-
-
Save yshuman1/48b6987bbd79157fcd6b76aabff4fcb7 to your computer and use it in GitHub Desktop.
This file contains 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 { Scene, Router } from 'react-native-router-flux'; | |
import LoginForm from './components/LoginForm'; | |
import EmployeeList from './components/EmployeeList'; | |
const RouterComponent = () => { | |
return ( | |
<Router> | |
<Scene key='root' hideNavBar> | |
<Scene key='auth'> | |
<Scene key='login' component={LoginForm} title='Please Login' /> | |
</Scene> | |
<Scene key='main'> | |
<Scene | |
key='employeeList' | |
component={EmployeeList} | |
title='Employees' | |
/> | |
</Scene> | |
</Scene> | |
</Router> | |
); | |
}; | |
export default RouterComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment