In java with android studio I achieve this by adding this code:
webView.getSettings().setJavaScriptEnabled(true);
webView.getSettings().setLoadWithOverviewMode(true);
webView.getSettings().setUseWideViewPort(true);
webView.getSettings().setSupportZoom(true);
webView.getSettings().setBuiltInZoomControls(true);
webView.getSettings().setDisplayZoomControls(false);
webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
webView.setScrollbarFadingEnabled(false);
but I don't know how to do this in React-Native, I try some css style but nothing did the trick.
here is my webview in React:
<WebView
ref="WebView"
scalesPageToFit={true}
onLoadStart={this.onLoadStart}
onLoadEnd={this.onLoadEnd}
source = {{ uri:this.props.navigation.getParam('main_url',
'https://xxxx.xxx/')}}
style={{backgroundColor: 'transparent',width: '100%'}}
/>:null}