Browse Source

remove originWhitelist from reference docs

Mike Diarmid 5 years ago
parent
commit
0d9e3e4055
No account linked to committer's email address
1 changed files with 0 additions and 21 deletions
  1. 0
    21
      docs/Reference.md

+ 0
- 21
docs/Reference.md View File

16
 - [`onLoadProgress`](Reference.md#onloadprogress)
16
 - [`onLoadProgress`](Reference.md#onloadprogress)
17
 - [`onMessage`](Reference.md#onmessage)
17
 - [`onMessage`](Reference.md#onmessage)
18
 - [`onNavigationStateChange`](Reference.md#onnavigationstatechange)
18
 - [`onNavigationStateChange`](Reference.md#onnavigationstatechange)
19
-- [`originWhitelist`](Reference.md#originwhitelist)
20
 - [`renderError`](Reference.md#rendererror)
19
 - [`renderError`](Reference.md#rendererror)
21
 - [`renderLoading`](Reference.md#renderloading)
20
 - [`renderLoading`](Reference.md#renderloading)
22
 - [`scalesPageToFit`](Reference.md#scalespagetofit)
21
 - [`scalesPageToFit`](Reference.md#scalespagetofit)
369
 
368
 
370
 ---
369
 ---
371
 
370
 
372
-### `originWhitelist`
373
-
374
-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://*".
375
-
376
-| Type             | Required |
377
-| ---------------- | -------- |
378
-| array of strings | No       |
379
-
380
-Example:
381
-
382
-```jsx
383
-//only allow URIs that begin with https:// or git://
384
-<WebView
385
-  source={{ uri: 'https://facebook.github.io/react-native' }}
386
-  originWhitelist={['https://*', 'git://*']}
387
-/>
388
-```
389
-
390
----
391
-
392
 ### `renderError`
371
 ### `renderError`
393
 
372
 
394
 Function that returns a view to show if there's an error.
373
 Function that returns a view to show if there's an error.