[fix] Linking.openURL supports 'target' value

Close #2277
This commit is contained in:
Anthony van Winkle
2022-06-10 10:13:14 -07:00
committed by Nicolas Gallagher
parent c4223a6a57
commit ffd300ebfd
3 changed files with 48 additions and 7 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ Returns a `Promise` that resolves to a boolean indicating whether the app can op
Returns a `Promise` that resolves to the string of the URL that initially loaded the app.
{% endcall %}
{% call macro.prop('openURL', '(url) => Promise<>') %}
Try to open the given url in a secure fashion. The method returns a Promise object. If the url opens, the promise is resolved. If not, the promise is rejected.
{% call macro.prop('openURL', '(url, target) => Promise<>') %}
Try to open the given url in a secure fashion. The provided target (including `undefined`) will be passed as the window target, or "_blank" if no target included. The method returns a Promise object. If the url opens, the promise is resolved. If not, the promise is rejected.
{% endcall %}
---