Skip to content

Instantly share code, notes, and snippets.

View ridgeO's full-sized avatar

Ridge ridgeO

View GitHub Profile
@ridgeO
ridgeO / initialApp.js
Created May 30, 2017 03:40
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';
@ridgeO
ridgeO / importApp.js
Created May 30, 2017 03:39
Code snippet from ReactNav application as featured in http://platypus.is/posts/4
# index.ios.js and index.android.js
import './App.js'
@ridgeO
ridgeO / addBackButtonToRed.js
Created May 30, 2017 03:34
Code snippets from ReactNav application as featured in http://platypus.is/posts/4
# App.js
...
class RedScreen extends Component {
render() {
return(
<View style={styles.red}>
<Text style={styles.text}>This is the Red Screen</Text>
<TouchableHighlight
style={styles.button}