Skip to content

Instantly share code, notes, and snippets.

@iwilsonq
Created February 23, 2018 23:00
Show Gist options
  • Save iwilsonq/bf6d4714feeee281c08cb1b14fc48260 to your computer and use it in GitHub Desktop.
Save iwilsonq/bf6d4714feeee281c08cb1b14fc48260 to your computer and use it in GitHub Desktop.
import React from ‘react’;
import { Text, SafeAreaView } from ‘react-native’;
import Map from ‘./app/components/Map’
// A placeholder until we get our own location
const region = {
latitude: 37.321996988,
longitude: -122.0325472123455,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421
}
export default class App extends React.Component {
state = {
region: null
coffeeShops: []
}
render() {
return (
<SafeAreaView style={styles.container}>
<Map
region={region}
places={this.state.coffeeShops}
/>
</SafeAreaView>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment