Skip to content

Commit

Permalink
Fix RNTester WebBrowser example
Browse files Browse the repository at this point in the history
Reviewed By: yungsters

Differential Revision: D7890708

fbshipit-source-id: e96c2283f92ae151152f89bebd95141852ff40b1
  • Loading branch information
mdvacca authored and facebook-github-bot committed May 7, 2018
1 parent 30d06b4 commit 4d99daa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RNTester/js/WebViewExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var DISABLED_WASH = 'rgba(255,255,255,0.25)';
var TEXT_INPUT_REF = 'urlInput';
var WEBVIEW_REF = 'webview';
var DEFAULT_URL = 'https://m.facebook.com';
const FILE_SYSTEM_ORIGIN_WHITE_LIST = ['file://*', 'http://*', 'https://*'];

class WebViewExample extends React.Component<{}, $FlowFixMeState> {
state = {
Expand Down Expand Up @@ -241,6 +242,7 @@ class MessagingTest extends React.Component<{}, $FlowFixMeState> {
backgroundColor: BGWASH,
height: 100,
}}
originWhitelist={FILE_SYSTEM_ORIGIN_WHITE_LIST}
source={require('./messagingtest.html')}
onMessage={this.onMessage}
/>
Expand Down Expand Up @@ -414,6 +416,7 @@ exports.examples = [
backgroundColor: BGWASH,
height: 100,
}}
originWhitelist={FILE_SYSTEM_ORIGIN_WHITE_LIST}
source={require('./helloworld.html')}
scalesPageToFit={true}
/>
Expand Down

0 comments on commit 4d99daa

Please sign in to comment.