Skip to content

Commit d756a73

Browse files
author
Aji Kisworo Mukti
committed
Custom Headers support
1 parent 78618b0 commit d756a73

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const WEBVIEW_REF = 'webview';
2020

2121
const propTypes = {
2222
url: PropTypes.string,
23+
headers: PropTypes.object,
2324
hideToolbar: PropTypes.bool,
2425
hideAddressBar: PropTypes.bool,
2526
hideStatusBar: PropTypes.bool,
@@ -130,7 +131,7 @@ class WebBrowser extends BaseComponent {
130131
ref={WEBVIEW_REF}
131132
automaticallyAdjustContentInsets={false}
132133
style={styles.webView}
133-
source={{uri: this.state.url}}
134+
source={{uri: this.state.url, headers: this.props.headers}}
134135
javaScriptEnabled={true}
135136
domStorageEnabled={true}
136137
decelerationRate="normal"

0 commit comments

Comments
 (0)