react-native-maps icon indicating copy to clipboard operation
react-native-maps copied to clipboard

Element type is invalid

Open guillaumepiot opened this issue 9 years ago • 3 comments

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?

screen shot 2016-02-25 at 17 29 25

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);

guillaumepiot avatar Feb 25 '16 17:02 guillaumepiot