Skip to content

Commit 0780b51

Browse files
committed
update doc for new android file:// props
allowFileAccessFromFileURLs and allowUniversalAccessFromFileURLs
1 parent d861681 commit 0780b51

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ the message must be in string. because this is the only way to send data back an
9898
#### onBridgeMessage
9999
this is a prop that needs to be a function. it will be called once a message is received from webview. The type of received message is also in string.
100100

101+
#### allowFileAccessFromFileURLs (Android only)
102+
this is a prop that allows locally loaded pages via file:// to access other file:// resources. Pass-thru to corresponding [setting](https://developer.android.com/reference/android/webkit/WebSettings.html#setAllowFileAccessFromFileURLs(boolean)) in WebView. Default is `false` for Android 4.1 and above.
103+
104+
#### allowUniversalAccessFromFileURLs (Android only)
105+
this is a prop that allows locally loaded pages via file:// to access resources in any origin. Pass-thru to corresponding [setting](https://developer.android.com/reference/android/webkit/WebSettings.html#setAllowUniversalAccessFromFileURLs(boolean)) in WebView. Default is `false` for Android 4.1 and above.
101106

102107
## Bridge Script
103108

0 commit comments

Comments
 (0)