Skip to content

Commit 5273c8b

Browse files
committed
Fix flow error on index.js
1 parent a6a5b3e commit 5273c8b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type InAppBrowserOptions = {
3535
endEnter: string,
3636
endExit: string
3737
},
38-
headers?: { [string]: string }
38+
headers?: { [key: string]: string }
3939
}
4040

4141
async function open(url: string, options: InAppBrowserOptions = {}): Promise<BrowserResult> {
@@ -120,7 +120,8 @@ function _waitForRedirectAsync(returnUrl: string): Promise<RedirectResult> {
120120
});
121121
}
122122

123-
async function isAvailable(): Promise<void> {
123+
async function isAvailable():
124+
Promise<boolean> {
124125
if (Platform.OS === 'android') {
125126
return Promise.resolve(true);
126127
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-inappbrowser-reborn",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "InAppBrowser for React Native",
55
"main": "index.js",
66
"readmeFilename": "README.md",

0 commit comments

Comments
 (0)