Update Reference.md

This commit is contained in:
Thibault Malbranche 2019-03-01 01:25:15 +01:00 committed by GitHub
parent 475fb7ff9f
commit e543e940d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -268,10 +268,10 @@ Example:
```jsx
<WebView
source={{ uri: "https://infinite.red" }}
source={{ uri: "https://facebook.github.io/react-native" }}
onShouldStartLoadWithRequest={(request) => {
// Only allow navigating within this website
return request.url.startsWith("https://infinite.red")
return request.url.startsWith("https://facebook.github.io/react-native")
}}
/>
```