NewsCrawler.org

Stim: Managing React Native Metro, Simulators and Builds per Git Worktree

React Nativeのローカル開発をAIに任せやすくするStimを試してみた
Stim: Managing React Native Metro, Simulators and Builds per Git Worktree
Stim: Managing React Native Metro, Simulators and Builds per Git Worktree
Image: zenn.dev

Ichiki, a product engineer at Mybest who develops React Native apps, describes problems with running parallel work across Git worktree[1] folders with AI agents. The problems include Metro[2] port conflicts, not knowing which worktree a running Simulator[3] belongs to, rebuilding in every new worktree, and uncertainty about whether stopping an environment affects other work. Stim is a tool that manages Metro, Simulator and Emulator, and builds for React Native and Expo for each Git worktree, and it is designed for parallel development with coding agents.

Each workspace gets its own Metro port and devices, so connections do not mix and apps do not overwrite each other. Metro's transform cache and native build outputs are shared between worktrees. If the native inputs are the same, as checked with @expo/fingerprint, a native build can be reused. The main commands are stim worktree warm to prepare a new worktree, stim ios and stim android to build, install and launch, stim status --json, stim logs --errors, and stim stop. Running stim ios starts Metro automatically if it is not running, and stim stop only affects devices that Stim created.

Stim provides an official agent skill, which is kept thin, and detailed steps are fetched from the CLI command stim guide agent. Combined with agent-device, an agent can also operate screens and save screenshots. Stim Desktop, a macOS app, shows the Simulators, builds and logs of each workspace in a GUI. Mybest introduced Stim into its mobile app development environment, and one recorded snapshot shows four environments running five Simulators at the same time. The author also notes cloud options such as EAS Workflows and Devin, and plans to test cloud environments alongside local development.

Read the original zenn.dev

Sources

  • Zenn JA

    React Nativeのローカル開発をAIに任せやすくするStimを試してみた

    7 likes1 bookmark0 comments

Published: First seen: Читать по-русски

Open as a page