Skip to content

Instantly share code, notes, and snippets.

View pporche87's full-sized avatar

Patrick Porche pporche87

View GitHub Profile
import React from 'react'
import { View } from 'react-native'
const CardSection = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
)
}
import React from 'react'
import { View } from 'react-native'
const Card = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
)
}
import React from 'react'
import { Text, TouchableOpacity } from 'react-native'
const Button = ({ onPress, children }) => {
const { buttonStyle, textStyle } = styles
return (
<TouchableOpacity onPress={onPress} style={buttonStyle}>
<Text style={textStyle}>
{children}
export * from './Button'
export * from './Card'
export * from './CardSection'
import React, { Component } from 'react'
import { View, Text, ScrollView } from 'react-native'
import axios from 'axios'
import GymDetail from './GymDetail'
import { customHeader } from '../config'
export default class GymList extends Component {
static navigationOptions = {
title: 'Closest Gyms Near You!'
}
import React from 'react'
import {
Text,
View,
Image,
Linking
} from 'react-native'
import {
Card,
CardSection,
import React, { Component } from 'react'
import { StyleSheet, Image, View } from 'react-native'
import YelpApi from 'v3-yelp-api'
import config from '../config'
import { Button, Card, CardSection } from './components'
export default class PrimarySearch extends Component {
static navigationOptions = {
title: 'Local Gym Finder'
}
import { StackNavigator } from 'react-navigation'
import PrimarySearch from './PrimarySearch'
import GymList from './GymList'
const gymFinderApp = StackNavigator({
PrimarySearch: {
screen: PrimarySearch
},
GymList: {
screen: GymList
import { AppRegistry } from 'react-native'
import Navigator from './app/AppNavigator'
AppRegistry.registerComponent('gymFinder', () => Navigator)
import chai, { expect } from 'chai'
import chaiChange from 'chai-change'
import DirectedGraph from '../../src/advanced/DirectedGraph'
chai.use(chaiChange)
describe('DirectedGraph()', () => {
it('exists', () => {
expect(DirectedGraph).to.be.a('function')