codempireio / react-native-cluster-map

ReactNative MapView clustering component for iOS + Android
MIT License
74 stars 15 forks source link

Undefined is not a function #48

Open sourabhkheterpal opened 3 years ago

sourabhkheterpal commented 3 years ago

I am getting the above error from ClusterMap component when I stop debugging the app. It is working fine when debugging is ON.

ENV: Android React Native: 0.61.5 "react-native-maps": "^0.27.1", "react-native-cluster-map": "^1.0.9",

Code:

<ClusterMap
            provider={PROVIDER_GOOGLE}
            style={{ ...StyleSheet.absoluteFillObject }}
            region={{
                latitude: 22.593684,
                longitude: 80.96288,
                latitudeDelta: 25.9922,
                longitudeDelta: 35.9421,
            }}
            renderClusterMarker={renderCustomClusterMarker}
        >
            {DemoMarkers.map((marker, id) => {
                return <Marker coordinate={marker} key={id}/>;
            })}
        </ClusterMap>

Screenshot_1614503908

stothet commented 3 years ago

try using "react-native-maps": "https://github.com/react-community/react-native-maps.git",