How to avoid zoomcontrols from webview


can anybody mention how to avoid the zoom option to a default (mobileview) size while using WebView


You mean on Android, right? Here’s an Angular example, but it’s almost identical for regular NativeScript:

HTML file:

  <WebView backgroundColor="#fff" [src]="text" (loaded)="webViewLoaded($event)"></WebView>

TypeScript file:

  webViewLoaded(args: EventData): any {
    const webView: WebView = <WebView>args.object;
    if ( {;;


thanks for your reply, but am using javascript. I used the same logic in JS but not working


thank you i got it now,thank you very much