react-native-map-link 3.7.0 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -40,7 +40,6 @@ on their device. The app supports Apple Maps, Google Maps, Citymapper, Uber, and
40
40
 
41
41
  <br /><p align="center">
42
42
  <img src="./docs/example.png" alt="Example screenshot" width="320" />
43
-
44
43
  </p>
45
44
 
46
45
  ## Installation
package/lib/utils.js CHANGED
@@ -184,6 +184,9 @@ const generateMapUrl = ({ app, directionsMode, appleIgnoreLatLon, googleForceLat
184
184
  if (!googleForceLatLon && title) {
185
185
  url += `&destination=${encodedTitle}`;
186
186
  }
187
+ else if (!googleForceLatLon && address) {
188
+ url += `&destination=${address}`;
189
+ }
187
190
  else {
188
191
  url += `&destination=${latlng}`;
189
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-map-link",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "Open the map app of the user's choice with a specific location.",
5
5
  "source": "src/index",
6
6
  "main": "lib/index.js",