Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* 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