react-native-maps
react-native-maps copied to clipboard
Element type is invalid
Hi guys,
First of all, thank you for releasing this integration of Google maps. After successful completing the installation, i'm running into a trivial problem which I can't seem to solve.
It looks the render method doesn't accept the <GoogleMap/> tag. Any ideas?
Here's the source code of the app:
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View
} from 'react-native';
import { GoogleMap } from '@pod-point-open-source/react-native-maps';
class SafeTrail extends Component {
render() {
return (
<View style={styles.container}>
<GoogleMap style={styles.map}/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
map: {
flex: 1,
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
AppRegistry.registerComponent('SafeTrail', () => SafeTrail);