Skip to content

Instantly share code, notes, and snippets.

@tigerraj32
Last active May 19, 2016 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tigerraj32/9c4f0ab184929bd17bcf83ec733bd41b to your computer and use it in GitHub Desktop.
Save tigerraj32/9c4f0ab184929bd17bcf83ec733bd41b to your computer and use it in GitHub Desktop.
/**
* 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