Skip to content

Instantly share code, notes, and snippets.

@tigerraj32
Last active May 19, 2016 06:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
/**
* 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