From 49d2c4fc5ba25d8401b4b93f2edeb094e49ffd03 Mon Sep 17 00:00:00 2001 From: Jason Di Benedetto Date: Fri, 14 Sep 2018 13:59:56 +0930 Subject: [PATCH] update readme --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9f9f214..15e7d23 100644 --- a/README.md +++ b/README.md @@ -65,9 +65,11 @@ class YourComponent extends Component { _pressHandler() { SafariView.isAvailable() - .then(SafariView.show({ - url: "https://github.com/naoufal" - })) + .then(() => { + SafariView.show({ + url: "https://github.com/naoufal" + }); + }) .catch(error => { // Fallback WebView code for iOS 8 and earlier });