Skip to content

Instantly share code, notes, and snippets.

@ridgeO
Created May 30, 2017 03:40
Show Gist options
  • Save ridgeO/e5cdec6d8e9e32008fd5a044c98a74e5 to your computer and use it in GitHub Desktop.
Save ridgeO/e5cdec6d8e9e32008fd5a044c98a74e5 to your computer and use it in GitHub Desktop.
Code snippet from ReactNav application as featured in http://platypus.is/posts/4
# App.js
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
Text
} from 'react-native';
import styles from './Styles.js';
class ReactNav extends Component {
render() {
return (
<View style={styles.container}>
<Text>Hello World</Text>
</View>
);
}
}
AppRegistry.registerComponent('ReactNav', () => ReactNav);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment