teovillanueva / react-native-web-maps

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

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

Closed joancifo closed 9 months ago

joancifo commented 9 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>