From ec68c97d72030cab6e3aef991dee8413d5a95c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Se=C4=8D?= Date: Fri, 31 Mar 2017 10:35:52 -0700 Subject: [PATCH] Add iOS Linking location example to docs Summary: Hi, the docs make it seem like `geo:${latitude},${longitude}` is the cross-platform way to link locations on Google/Apple Maps. This is Android-only though. I did no changes to code. I noticed that the Appetize.io embed tries to run the [Linking example](https://facebook.github.io/react-native/docs/linking.html) code on iOS, although the example uses Android location scheme. This results in errors. I'd like to fix this as well, but I have no idea how to tell the demo to run on Android. Closes https://github.com/facebook/react-native/pull/13220 Differential Revision: D4804123 Pulled By: hramos fbshipit-source-id: 2de85d56476933ec54ea423d76a0fe98ed5132d3 --- Libraries/Linking/Linking.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/Linking/Linking.js b/Libraries/Linking/Linking.js index 0f50b15bd..46318a0ee 100644 --- a/Libraries/Linking/Linking.js +++ b/Libraries/Linking/Linking.js @@ -138,7 +138,8 @@ class Linking extends NativeEventEmitter { /** * Try to open the given `url` with any of the installed apps. * - * You can use other URLs, like a location (e.g. "geo:37.484847,-122.148386"), a contact, + * You can use other URLs, like a location (e.g. "geo:37.484847,-122.148386" on Android + * or "http://maps.apple.com/?ll=37.484847,-122.148386" on iOS), a contact, * or any other URL that can be opened with the installed apps. * * NOTE: This method will fail if the system doesn't know how to open the specified URL.