Skip to content

Instantly share code, notes, and snippets.

@mariodev12
Created June 4, 2017 10:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mariodev12/01e58fa1eed262648149106f3916083f to your computer and use it in GitHub Desktop.
Save mariodev12/01e58fa1eed262648149106f3916083f to your computer and use it in GitHub Desktop.
/**
* 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