import React, { Component } from 'react';
import { Text, Navigator, TouchableHighlight } from 'react-native';

export default class Navigation extends Component {
  render() {
    return (
      <Navigator
        initialRoute={{ title: 'Awesome Scene', index: 0 }}
        renderScene={(route, navigator) =>
          <Text>Hello {route.title}!</Text>
        }
        style={{padding: 100}}
      />
    );
  }
}
import React, { Component } from 'react';
import { Text, Navigator, TouchableHighlight } from 'react-native';

export default class Navigation extends Component {

  constructor(props){
    super(props);
  }

  render() {
    return (
      <Navigator
        initialRoute={{ title: 'Awesome Scene', index: 0 }}
        renderScene={(route, navigator) =>
          <Text>Hello {route.title}!</Text>
        }
        style={{padding: 100}}
      />
    );
  }
}
edit navigation