Skip to content

Instantly share code, notes, and snippets.

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
What would you like to do?
* Sample React Native App
import React, { Component } from 'react';
import {
} 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 (
<Scene key="root">
<Scene key="pageOne" component={PageOne} title="PageOne" initial={true} />
<Scene key="pageTwo" component={PageTwo} title="PageTwo" />
AppRegistry.registerComponent('HelloFlux', () => HelloFlux);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment