Created
June 4, 2017 10:38
-
-
Save mariodev12/01e58fa1eed262648149106f3916083f 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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* @flow | |
*/ | |
import React, { Component } from 'react'; | |
import { | |
AppRegistry, | |
StyleSheet, | |
Text, | |
View | |
} from 'react-native'; | |
import MapView from 'react-native-maps' | |
export default class googleMapsAirbnb extends Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<MapView | |
style={{flex: 1}} | |
provider={MapView.PROVIDER_GOOGLE} | |
initialRegion={{ | |
latitude: 37.78825, | |
longitude: -122.4324, | |
latitudeDelta: 0.0922, | |
longitudeDelta: 0.0421, | |
}} | |
/> | |
</View> | |
); | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1 | |
} | |
}); | |
AppRegistry.registerComponent('googleMapsAirbnb', () => googleMapsAirbnb); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment