Skip to content

Instantly share code, notes, and snippets.

View brookslyrette's full-sized avatar
🏠
Working from home from now until forever.

Brooks Lyrette brookslyrette

🏠
Working from home from now until forever.
View GitHub Profile
language: node_js
node_js:
- "stable"
cache:
directories:
- node_modules
script:
- npm test -- --coverage # Include coverage when running tests
- npm run build
after_script: # Upload coverage reports
language: node_js
node_js:
- "stable"
cache:
directories:
- node_modules
script:
- npm test
- npm run build
deploy:
language: node_js
node_js:
- "stable"
cache:
directories:
- node_modules #Cache node_modules for faster builds
script:
- npm test #Runs Tests
- npm run build #Creats a production build
import React from 'react';
import { Button, StyleSheet, Text, View } from 'react-native';
const Screen1 = ( {navigation} ) => (
<View style={styles.container}>
<Text>Screen 1</Text>
<Button
title="Go To Screen 2"
onPress={() => navigation.navigate('Screen2')}>
</Button>
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { StackNavigator } from 'react-navigation';
const Screen1 = () => (<View style={styles.container}><Text>Screen 1</Text></View>)
const Screen2 = () => (<View style={styles.container}><Text>Screen 2</Text></View>)
const Screen3 = () => (<View style={styles.container}><Text>Screen 3</Text></View>)
const Navigator = StackNavigator({
Screen1: { screen: Screen1 },
import { StackNavigator } from 'react-navigation';
// screens are here
const Navigator = StackNavigator({
Screen1: { screen: Screen1 },
Screen2: { screen: Screen2 },
Screen3: { screen: Screen3 },
}, {
navigationOptions: {
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
const Screen1 = () => (<View style={styles.container}><Text>Screen 1</Text></View>)
const Screen2 = () => (<View style={styles.container}><Text>Screen 2</Text></View>)
const Screen3 = () => (<View style={styles.container}><Text>Screen 3</Text></View>)
const styles = StyleSheet.create({
container: {
flex: 1,
import React from 'react';
import logo from './logo.svg';
import './App.css';
import { BrowserRouter, Route, Link } from 'react-router-dom';
import FrontPageContainer from './containers/FrontPageContainer.js';
import SubredditPageContainer from './containers/SubredditPageContainer.js';
import DefaultRedditsContainer from './containers/DefaultRedditsContainer.js'
const App = (props) => (
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import App from './App/App.js';
AppRegistry.registerComponent('ReactNativeCounter', () => App);
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View
} from 'react-native';
import { Provider } from 'react-redux';
import { connect } from 'react-redux';
import store from './store/store.js';
import CounterContainer from './containers/CounterContainer.js';