Develop with Hot Reload
Use --watch to push frame changes to your device instantly while you work.
The --watch flag keeps the CLI running and re-deploys your frame every time you save the file. Combined with DevKit in your app, changes appear on your device without a rebuild. That is hot reload.
Prerequisites
- DevKit set up in your app. See Hot Reload for setup.
- Your device or emulator running the app in debug mode with DevKit connected.
Start watching
nativeblocks frame deploy -f ./frames/home.ts --watch
The CLI deploys the frame once immediately, then watches for file changes. On every save it re-deploys and sends a signal to DevKit, which refreshes the frame on your device.
Typical development loop
- Run
frame deploy --watchin one terminal - Open the frame file in your editor
- Make a change and save
- The frame updates on your device in seconds
No app rebuild. No app restart.
Stream device logs
Add --log to stream logs from connected SDK devices while you watch. It requires --watch.
nativeblocks frame deploy -f ./frames/home.ts --watch --log
This is useful for catching action failures and variable issues without leaving the terminal.
Notes
--watchand--tagcannot be combined. Tags are for production releases, not live development sessions.- If the CLI loses the connection to DevKit, restart the watch command.
- Multiple frame files need separate
--watchprocesses, one per file.
What's next
- Deploy to production when the frame is ready to ship