native-mate init
Set up native-mate in an existing React Native or Expo project.
Usage
bash
1
npx native-mate init [options]What it does
- Prompts for a theme preset and components directory
- Writes
native-mate.jsonto the project root - Installs
@native-mate/corevia your package manager - Creates or updates
.cursorruleswith native-mate guidelines
Options
| Flag | Description |
|---|---|
| -p, --preset <name> | Set preset without prompting: zinc | slate | rose | midnight |
| -y, --yes | Skip all prompts, use defaults (zinc preset, components/ui) |
Output: native-mate.json
json
1
2
3
4
{
"preset": "zinc",
"componentsDir": "components/ui"
}