Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30345

Launching Google Maps app from react-native-maps

$
0
0

I'm displaying dynamic maps inside my app using using react-native-maps. I want Google Maps app to launch when a user presses some part of map, a text or an icon, so they can view the map also externally. How can I achieve that? Thanks.

<MapView
    showsUserLocation
    style={styles.map}
    initialRegion={{
      latitude: placesLat,
      longitude: placesLng,
      latitudeDelta: 0.0022,
      longitudeDelta: 0.0121
    }}
  >
    <MapView.Marker
      coordinate={{ latitude: placesLat, longitude: placesLng }}
      title={placesTitle}
    />
  </MapView>

Viewing all articles
Browse latest Browse all 30345

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>