Last active
May 19, 2016 06:58
-
-
Save tigerraj32/9c4f0ab184929bd17bcf83ec733bd41b 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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
} from 'react-native'; | |
import { Router, Scene } from 'react-native-router-flux'; | |
import PageOne from './PageOne'; | |
import PageTwo from './PageTwo'; | |
class HelloFlux extends Component { | |
render() { | |
return ( | |
<Router> | |
<Scene key="root"> | |
<Scene key="pageOne" component={PageOne} title="PageOne" initial={true} /> | |
<Scene key="pageTwo" component={PageTwo} title="PageTwo" /> | |
</Scene> | |
</Router> | |
); | |
} | |
} | |
AppRegistry.registerComponent('HelloFlux', () => HelloFlux); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment