The in-browser device frame
Openv2 renders your app inside simulated device frames — recent iPhone, Pixel, and Galaxy profiles — so you can judge layout, safe-area insets, and overall proportions. Switch device frames from the preview toolbar when the option is available. The preview runs your app’s Expo web build in an iframe served by the Expo dev server inside your WebContainer. This gives you a tight iteration loop: most UI changes appear within seconds of the AI finishing a turn.When preview updates automatically
Preview refreshes automatically through Expo’s hot reload when:- The AI writes or edits files and the dev server detects the change.
- You save a file manually in the editor.
If the dev server isn’t running yet (common right after a project loads), the terminal will show Expo starting up. Wait for the server to be ready before expecting Preview to refresh.
Switching ports
If your project exposes multiple dev server ports, a port selector may appear in the preview toolbar. Select the correct port if the default one isn’t showing your app.Testing on a real device
The in-browser preview covers most UI work, but some native APIs only behave correctly on real hardware. Two ways to test on a physical phone:- Expo Go + QR code
- Tunnel preview
Find the QR code
Open the QR / tunnel panel inside Preview, or look for the QR code in the terminal output from the dev server.
Element inspector
When the element inspector is enabled, you can click any UI element in the preview frame. Openv2 captures structured context about the component you selected — its type, styles, and position — and sends it to the AI automatically. This lets you give precise instructions without needing to know the component’s name or file location:- Click the element you want to change in Preview.
- Type your instruction in chat: “increase the padding on this card” or “change this button’s background to the primary color.”
Web preview vs. native device
The in-browser preview runs the web target of your Expo app, which behaves differently from a native iOS or Android build in a few ways:| Aspect | Web preview | Native device |
|---|---|---|
| Native APIs (camera, push, etc.) | May not work or behave differently | Full support |
| Performance | May differ from native | Reflects real device performance |
| Fonts and animations | Mostly consistent | Exact native rendering |
| Safe areas | Simulated by device frame | Real hardware safe areas |
Test on your device
Step-by-step guide for Expo Go, QR codes, and tunnel preview.
Builds & mobile
Create an iOS or Android binary for distribution.
