Reference
nativra.json tells the CLI where to write files, which styling target to install and how installed files import each other. init creates it; you can edit it by hand.
This is what init --yes writes for an Expo project with NativeWind, no src/ folder and a "@/*": ["./*"] path alias:
{
"version": 4,
"$schema": "https://nativra.vercel.app/schema.json",
"registries": [{ "name": "default", "url": "https://nativra.vercel.app" }],
"componentsDir": "components/ui",
"hooksDir": "hooks",
"utilsDir": "lib/utils",
"themesDir": "lib/themes",
"stylingTarget": "nativewind",
"aliasPrefix": "@/"
}"nativewind" or "stylesheet". Which implementation of each item is installed. Default: nativewind.components/ui.componentsDir.hooks.cn(). Default: lib/utils.lib/themes.aliasPrefix + dir, e.g. @/components/ui.components, blocks, hooks, utils, themes). They win over aliasPrefix + dir.default is used for every add. See Custom registries.expo is a dependency or an app.json/app.config exists; otherwise React Native.nativewind or tailwindcss is installed or a Tailwind config exists; otherwise StyleSheet.src/ folder, every default directory moves under it.tsconfig.json, such as "@/*": ["./src/*"].Without --yes, init asks you to confirm the styling target and the components, hooks and utilities directories. It also adds .nativra/ (local backups) to .gitignore.
If your tsconfig alias points at a subfolder, aliasPrefix + dir would produce the wrong path, so init writes aliases explicitly. A project with src/, "@/*": ["./src/*"] and the StyleSheet target gets:
{
"version": 4,
"$schema": "https://nativra.vercel.app/schema.json",
"registries": [{ "name": "default", "url": "https://nativra.vercel.app" }],
"componentsDir": "src/components/ui",
"hooksDir": "src/hooks",
"utilsDir": "src/lib/utils",
"themesDir": "src/lib/themes",
"stylingTarget": "stylesheet",
"aliasPrefix": "@/",
"aliases": {
"components": "@/components/ui",
"blocks": "@/components/ui",
"hooks": "@/hooks",
"utils": "@/lib/utils"
}
}Edits apply to future add, update and diff runs. Files already installed stay where they are. Run npx nativra-cli doctor to check that the config is still valid.