Skip to content

Commit

Permalink
Fix scalesPageToFit property on WkWebview (it doesnt support this pro…
Browse files Browse the repository at this point in the history
…perty)
  • Loading branch information
guilhermebruzzi committed Mar 25, 2017
1 parent a7349f6 commit d894f5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/SampleRN42/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default class Sample2 extends Component {
onLoadStart={(event) => { console.log('webview2 onLoadStart', event.nativeEvent); }}
onLoadEnd={(event) => { console.log('webview2 onLoadEnd', event.nativeEvent); }}
javaScriptEnabled
scalesPageToFit
source={require('./test.html')}/>
</View>
);
Expand Down
1 change: 1 addition & 0 deletions webview-bridge/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ var WebViewBridge = React.createClass({
let {source, ...props} = {...this.props};
delete props.onBridgeMessage;
delete props.onShouldStartLoadWithRequest;
delete props.scalesPageToFit;

var webView =
<RCTWebViewBridge
Expand Down

0 comments on commit d894f5e

Please sign in to comment.