Getting started
Run the example from this repository. The renderer is a local workspace package, and the example pins NitroUI 0.3.0 and Vue runtime-core 3.5.46.
Before you start
| Target | Tools |
|---|---|
| iOS | An Apple Silicon Mac, Xcode 27 with an iOS simulator runtime, and Bun |
| Android | Bun, a JDK, Android SDK Platform 36, platform-tools and an emulator. Set ANDROID_HOME to the SDK directory and put adb on your path. The template requests NDK 29.0.14206865. |
The NitroUI installation guide covers platform setup. Upstream installation guide
Open your first window
git clone https://github.com/getcortexlabs/nitroui-vue.git
cd nitroui-vue
bun install
cd example
bun run setup
bun run startsetup creates the sample's ios/ and android/ projects from NitroUI's templates and links their native dependencies. You can run it again after reinstalling dependencies. The first native build also compiles Hermes.
Press i for an iOS simulator or a for Android in the dev server. Type your name into the field. The label should change from Hello, Vue! to your greeting with every edit.
Work on the example
Leave the dev server running. In another terminal, from the repository root, run:
cd example
bun run watchEdit example/src/App.vue. The watcher compiles this file into App.generated.ts, the entry module consumed by NitroUI's bundler. For a one-off compilation, use bun run compile. The sample compiler handles this one single-file component with an inline template and <script setup>.
Choose a device
From example/, with the dev server running, you can build and launch on a particular destination.
xcrun simctl list devices available
bun run ios --device <simulator-udid>adb devices
bun run android --device <adb-serial>If Gradle reports SDK location not found, set ANDROID_HOME in the terminal that starts the build. If the application reports a missing generated module, run bun run compile in example/.
Check a change
From the repository root:
bun run typecheck
bun run test
bun run docs:devThe renderer tests exercise text edits, listener cleanup, keyed reordering and reactive layout props. To check native behavior, run the screen on the target platform.