feat(file-explorer): add download progress toast and auto-restart dev server

- Add download status toast (downloading/complete/error) for file downloads
- Update to use expo-file-system's new File API
- Auto-restart dev server on crash (non-zero exit codes)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Mohamed Boudra
2026-01-05 23:48:32 +07:00
co-authored by Claude Opus 4.5
parent 33a3031f74
commit 0806fd7965
2 changed files with 126 additions and 19 deletions
+7 -4
View File
@@ -23,16 +23,19 @@ function spawnServer() {
});
child.on("exit", (code, signal) => {
if (restarting) {
const exitDescriptor =
signal ?? (typeof code === "number" ? `code ${code}` : "unknown");
// Restart on: explicit restart request, or any non-zero exit (crash)
if (restarting || (code !== 0 && code !== null)) {
restarting = false;
console.warn(`[DevRunner] Server exited (${exitDescriptor}). Restarting...`);
spawnServer();
return;
}
const exitDescriptor =
signal ?? (typeof code === "number" ? `code ${code}` : "unknown");
console.warn(`[DevRunner] Server exited (${exitDescriptor}). Shutting down.`);
process.exit(typeof code === "number" ? code : 0);
process.exit(0);
});
}