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