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

  1. Prompts for a theme preset and components directory
  2. Writes native-mate.json to the project root
  3. Installs @native-mate/core via your package manager
  4. Creates or updates .cursorrules with native-mate guidelines

Options

FlagDescription
-p, --preset <name>Set preset without prompting: zinc | slate | rose | midnight
-y, --yesSkip all prompts, use defaults (zinc preset, components/ui)

Output: native-mate.json

json
1
2
3
4
{
  "preset": "zinc",
  "componentsDir": "components/ui"
}