teovillanueva / react-native-web-maps

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

Using initialCamera prop will load only once. After that, next page won't load (gray page) #37

Closed joancifo closed 10 months ago

joancifo commented 11 months ago

Using Expo and React Navigation

      <MapView
        provider={"google"}
        style={globalstyle.container}
        showsUserLocation={true}
        mapType={mapType}
        region={mapRegion}
        // initialRegion={mapRegion}
        loadingEnabled={false}
        googleMapsApiKey={""}
        // initialCamera={{
        //   center: {
        //     latitude: mapRegion.latitude,
        //     longitude: mapRegion.longitude,
        //   },
        //   zoom: 16,
        //   heading: 0,
        //   pitch: 0,
        // }}
      >

      </MapView>