We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b146e1c + b2b7cb9 commit 232a4ddCopy full SHA for 232a4dd
README.md
@@ -60,7 +60,7 @@ import InAppBrowser from 'react-native-inappbrowser-reborn';
60
async openLink() {
61
try {
62
await InAppBrowser.isAvailable()
63
- InAppBrowser.open('https://www.google.com', {
+ const result = await InAppBrowser.open('https://www.google.com', {
64
// iOS Properties
65
dismissButtonStyle: 'cancel',
66
preferredBarTintColor: 'gray',
@@ -84,9 +84,8 @@ import InAppBrowser from 'react-native-inappbrowser-reborn';
84
headers: {
85
'my-custom-header': 'my custom header value'
86
},
87
- }).then((result) => {
88
- Alert.alert(JSON.stringify(result))
89
- })
+ });
+ Alert.alert(JSON.stringify(result));
90
} catch (error) {
91
Alert.alert(error.message)
92
}
0 commit comments