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 terminal windows (A and B).
-
Start the Vega Virtual Device in terminal A:
-
Navigate to your app’s directory in terminal B:
-
Install the dependencies:
-
Build the app:
-
Start the Metro Server in terminal B:
The Metro Server loads dependencies and displays its logo.
-
Return to terminal A and start port forwarding:
-
Run your app using the debug build:
Use a custom Metro Bundler port - 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 - Vega Virtual Device
When you finish working on your app with Fast Refresh, you can:-
Close your app.
- Press Ctrl+C to stop the Metro Server.
-
Stop port forwarding:
-
Stop the Vega Virtual Device:



