CLI
Use the CLI to set up UIR and add components to your app.
init
Use init to set up a project. With -t expo it creates a new Expo app first.
It writes uir.json, installs the base dependencies with expo install, and checks that your root layout uses GestureHandlerRootView.
npx @codewithrabby/ui@latest initUsage: uir init [options]
set up UIR in an Expo project
Options:
-t, --template <template> create a new project from a template (expo)
-n, --name <name> name of the new project (with --template)
-y, --yes accept defaults
-f, --force overwrite an existing uir.json
-c, --cwd <cwd> run in another directory
-h, --help display helpadd
Use add to copy components into your project and install the extra packages they need. Run it with no names to pick from a list.
npx @codewithrabby/ui@latest add [component]Usage: uir add [options] [components...]
add components to your project
Arguments:
components names of the components to add
Options:
-a, --all add every component
-o, --overwrite replace files that already exist
-c, --cwd <cwd> run in another directory
-h, --help display helplist
Prints every available component with a short description.
npx @codewithrabby/ui@latest list