To set up your Vega Web App to develop your app
To implement WebView, you must import a few required libraries and then use a specific component to render the content.- Add an app template by following the directions in the Vega SDK topic Create an app from a template.
-
To install WebView, at the command prompt, run the following command.
-
In your app folder, open the manifest.toml file, and then add the following services and privileges.
-
Add the following to your JavaScript XML (JSX) file.
-
In your src/App.tsx file, add the following code, which includes the
hasTVPreferredFocus={true}prop, to render WebView.

