remove originWhitelist from reference docs

This commit is contained in:
Mike Diarmid 2019-03-22 13:10:24 +00:00 committed by GitHub
parent 5017ba3a39
commit 0d9e3e4055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 21 deletions

View File

@ -16,7 +16,6 @@ This document lays out the current public properties and methods for the React N
- [`onLoadProgress`](Reference.md#onloadprogress)
- [`onMessage`](Reference.md#onmessage)
- [`onNavigationStateChange`](Reference.md#onnavigationstatechange)
- [`originWhitelist`](Reference.md#originwhitelist)
- [`renderError`](Reference.md#rendererror)
- [`renderLoading`](Reference.md#renderloading)
- [`scalesPageToFit`](Reference.md#scalespagetofit)
@ -369,26 +368,6 @@ url
---
### `originWhitelist`
List of origin strings to allow being navigated to. The strings allow wildcards and get matched against _just_ the origin (not the full URL). If the user taps to navigate to a new page but the new page is not in this whitelist, the URL will be handled by the OS. The default whitelisted origins are "http://*" and "https://*".
| Type | Required |
| ---------------- | -------- |
| array of strings | No |
Example:
```jsx
//only allow URIs that begin with https:// or git://
<WebView
source={{ uri: 'https://facebook.github.io/react-native' }}
originWhitelist={['https://*', 'git://*']}
/>
```
---
### `renderError`
Function that returns a view to show if there's an error.