Created
February 23, 2018 23:00
-
-
Save iwilsonq/bf6d4714feeee281c08cb1b14fc48260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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