teovillanueva / react-native-web-maps

Cross platform maps for react & react-native 🗺
https://teovillanueva.github.io/react-native-web-maps/
MIT License
54 stars 14 forks source link

Not detect provider google . how to add api key #23

Closed rinaldycodes closed 1 year ago

rinaldycodes commented 1 year ago

<MapView style={stylesMap.map}

        initialRegion={mapRegion}
        provider={PROVIDER_GOOGLE}
        showsUserLocation={true}
        showsMyLocationButton={true}
        // minZoomLevel={17}
        // maxZoomLevel={19}
        // rotateEnabled={false}

      >

got issues

  1. map-view.tsx:366 [WARNING] react-native-web-maps only suppots google for now. Please pass "google" as provider in props _MapView @ map-view.tsx:366

  2. Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

how to add api key in react-native-web-map, in react native map work properly . please help me

teovillanueva commented 1 year ago

Hey! Take a look at the getting started section on the docs. Also make sure you've followed the installation steps. Are you using expo web?

https://teovillanueva.github.io/react-native-web-maps/getting-started#quick-example