Skip to content

Commit a6a5b3e

Browse files
committed
Update README
1 parent 6c084ec commit a6a5b3e

File tree

4 files changed

+9665
-9
lines changed

4 files changed

+9665
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ import InAppBrowser from 'react-native-inappbrowser-reborn'
8989
headers: {
9090
'my-custom-header': 'my custom header value'
9191
},
92-
});
93-
Alert.alert(JSON.stringify(result));
92+
})
93+
Alert.alert(JSON.stringify(result))
9494
}
9595
else Linking.openURL(url)
9696
} catch (error) {
@@ -205,7 +205,7 @@ The StatusBar will keep the last one provided in your app. So if the StatusBar i
205205
StatusBar.setBarStyle('dark-content')
206206
await InAppBrowser.open(url)
207207
} catch (error) {
208-
Alert.alert(error.message);
208+
Alert.alert(error.message)
209209
}
210210
})
211211
```
@@ -214,11 +214,11 @@ If you need to restore the old bar style, after the browser is dismissed, you ca
214214

215215
```js
216216
// patch StatusBar.setBarStyle to make style accessible
217-
const _setBarStyle = StatusBar.setBarStyle;
217+
const _setBarStyle = StatusBar.setBarStyle
218218
StatusBar.setBarStyle = (style) => {
219-
StatusBar.currentStyle = style;
220-
_setBarStyle(style);
221-
};
219+
StatusBar.currentStyle = style
220+
_setBarStyle(style)
221+
}
222222
```
223223

224224
You can than restore the old bar style after the browser has been dismissed like this:
@@ -231,7 +231,7 @@ You can than restore the old bar style after the browser has been dismissed like
231231
await InAppBrowser.open(url)
232232
if(oldStyle) StatusBar.setBarStyle(oldStyle)
233233
} catch (error) {
234-
Alert.alert(error.message);
234+
Alert.alert(error.message)
235235
}
236236
})
237237
```

0 commit comments

Comments
 (0)