Prerequisites
- Install the Vega SDK.
- Complete setup of either:
- Vega Virtual Device
- Fire TV Stick
Connect your Vega Virtual Device to Metro Server
Have your app’s directory path ready:- Open two shell windows (A and B).
-
Start the Vega Virtual Device in shell A:
-
Navigate to your app’s directory in shell B:
-
Install the dependencies:
-
Build the app:
-
Start the Metro Server in shell B:
The Metro Server loads dependencies and displays its logo.
-
Return to shell A and start port forwarding:
-
Run your app using the debug build:
Use a custom Metro Bundler port for Vega Virtual Device
Metro Bundler supports changing the default port.-
Start Metro on a custom port:
-
Reverse-port-forward the custom port on the host:
End the Fast Refresh session for Vega Virtual Device
When you finish working on your app with Fast Refresh, you can:-
Close your app.
-
Press
Ctrl+Cto stop the Metro Server. -
Stop port forwarding:
-
Stop the Vega Virtual Device:



