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 });