bamlab / react-native-components-collection

A collection of common React Native components
https://bamlab.github.io/react-native-components-collection/
38 stars 6 forks source link

Element type is invalid: expected a string [...] but got : undefined. #21

Open arnaud9 opened 6 years ago

arnaud9 commented 6 years ago

Hello ! I am trying to use '@bam.tech/react-native-component-map-clustering' but I run into an error.

Here is a minimal code sample :

import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import MapView, { PROVIDER_GOOGLE } from 'react-native-maps';

export default class App extends Component {
render() {
    return (
        <MapView
          provider={PROVIDER_GOOGLE}
          style={styles.map}
        >
          <MapView.Marker
            id={'test'}
            coordinate={{ latitude: 20, longitude: 5 }}
          />
        </MapView>
    );
  }
}

const styles = StyleSheet.create({
  map: {
    flex: 1,
  },
});

This code works well and I followed the documentation for the installation but when I replace 'react-native-maps' with '@bam.tech/react-native-component-map-clustering', I have the following error :

Screenshot
image

Thanks for your help !

chdeps commented 6 years ago

@arnaud-git je suis dessus je te dis dés que j'ai une solution ;)

traycho commented 4 years ago

Is this repo still alive ?