Bladeren bron

remove originWhitelist from reference docs

Mike Diarmid 5 jaren geleden
bovenliggende
commit
0d9e3e4055
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 0 en 21 verwijderingen
  1. 0
    21
      docs/Reference.md

+ 0
- 21
docs/Reference.md Bestand weergeven

@@ -16,7 +16,6 @@ This document lays out the current public properties and methods for the React N
16 16
 - [`onLoadProgress`](Reference.md#onloadprogress)
17 17
 - [`onMessage`](Reference.md#onmessage)
18 18
 - [`onNavigationStateChange`](Reference.md#onnavigationstatechange)
19
-- [`originWhitelist`](Reference.md#originwhitelist)
20 19
 - [`renderError`](Reference.md#rendererror)
21 20
 - [`renderLoading`](Reference.md#renderloading)
22 21
 - [`scalesPageToFit`](Reference.md#scalespagetofit)
@@ -369,26 +368,6 @@ url
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 371
 ### `renderError`
393 372
 
394 373
 Function that returns a view to show if there's an error.