@@ -89,8 +89,8 @@ import InAppBrowser from 'react-native-inappbrowser-reborn'
89
89
headers: {
90
90
' my-custom-header' : ' my custom header value'
91
91
},
92
- });
93
- Alert .alert (JSON .stringify (result));
92
+ })
93
+ Alert .alert (JSON .stringify (result))
94
94
}
95
95
else Linking .openURL (url)
96
96
} catch (error) {
@@ -205,7 +205,7 @@ The StatusBar will keep the last one provided in your app. So if the StatusBar i
205
205
StatusBar .setBarStyle (' dark-content' )
206
206
await InAppBrowser .open (url)
207
207
} catch (error) {
208
- Alert .alert (error .message );
208
+ Alert .alert (error .message )
209
209
}
210
210
})
211
211
```
@@ -214,11 +214,11 @@ If you need to restore the old bar style, after the browser is dismissed, you ca
214
214
215
215
``` js
216
216
// patch StatusBar.setBarStyle to make style accessible
217
- const _setBarStyle = StatusBar .setBarStyle ;
217
+ const _setBarStyle = StatusBar .setBarStyle
218
218
StatusBar .setBarStyle = (style ) => {
219
- StatusBar .currentStyle = style;
220
- _setBarStyle (style);
221
- };
219
+ StatusBar .currentStyle = style
220
+ _setBarStyle (style)
221
+ }
222
222
```
223
223
224
224
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
231
231
await InAppBrowser .open (url)
232
232
if (oldStyle) StatusBar .setBarStyle (oldStyle)
233
233
} catch (error) {
234
- Alert .alert (error .message );
234
+ Alert .alert (error .message )
235
235
}
236
236
})
237
237
```
0 commit comments