import { WebView } from '@nativescript/core/ui/web-view'; import * as fs from '@nativescript/core/file-system'; let webView: WebView; export function webViewLoaded(args) { webView = args.object; } const relUrl = '~/web-view/query.html' + '?foo=bar&urlType=relative'; const absoluteUrl = `${fs.knownFolders.currentApp().path}/web-view/query.html` + '?foo=bar&urlType=absolute'; const fileUrl = `file:///${fs.knownFolders.currentApp().path}/web-view/query.html` + '?foo=bar&urlType=filePrefix'; const htmlString = `