How to disable zoom on react-native
web-view
,is there a property like hasZoom={false}
(just an example) that can be included in the below web-view
tag that can disable zooming. It has to be working on both android and ios.
<WebView ref={WEBVIEW_REF} source={{uri:Environment.LOGIN_URL}} ignoreSslError={true} onNavigationStateChange={this._onNavigationStateChange.bind(this)} onLoad={this.onLoad.bind(this)} onError={this.onError.bind(this)} ></WebView>
Show activity on this post. How to disable zoom on react-native web-view ,is there a property like hasZoom={false} (just an example) that can be included in the below web-view tag that can disable zooming.
A view component for react-native with pinch to zoom, tap to move and double tap to zoom capability. You can zoom everything, from normal images, text and more complex nested views.
Thought this might help others, I solved this by adding the following in the html <head>
section:
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With