mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
committed by
Nicolas Gallagher
parent
c4223a6a57
commit
ffd300ebfd
@@ -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 %}
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user