- Accordion
- Action Sheet
- Alert
- Alert Dialog
- Audio Player
- Audio Recorder
- Audio Waveform
- Avatar
- AvoidKeyboard
- Badge
- BottomSheet
- Button
- Camera
- Camera Preview
- Card
- Carousel
- Checkbox
- Collapsible
- Color Picker
- Combobox
- Date Picker
- File Picker
- Gallery
- Hello Wave
- Icon
- Image
- Input
- Input OTP
- Link
- MediaPicker
- Mode Toggle
- Onboarding
- ParallaxScrollView
- Picker
- Popover
- Progress
- Radio
- ScrollView
- SearchBar
- Separator
- Share
- Sheet
- Skeleton
- Spinner
- Switch
- Table
- Tabs
- Text
- Toast
- Toggle
- Video
- View
init
Use the init command to initialize a new BNA project with configuration and dependencies.
The init command creates a new project, installs dependencies, adds utils, hooks, themes and sets up the component structure for your mobile project.
pnpm dlx bna-ui init [project-name]
Options
Usage: bna-ui init [options] [project-name]
initialize a new BNA project
Arguments:
project-name name of the project (optional)
Options:
--npm use npm as package manager
--yarn use yarn as package manager
--pnpm use pnpm as package manager
--bun use bun as package manager
--skip-install skip package installation
-h, --help display help for commandconvex
Use the convex command to initialize a new BNA project with Convex backend integration.
The convex command creates a new project with Convex configured, installs dependencies, and sets up the backend structure.
pnpm dlx bna-ui convex [project-name]
Options
Usage: bna-ui convex [options] [project-name]
initialize a new BNA project with Convex backend
Arguments:
project-name name of the project (optional)
Options:
--npm use npm as package manager
--yarn use yarn as package manager
--pnpm use pnpm as package manager
--bun use bun as package manager
--skip-install skip package installation
--skip-convex skip Convex initialization
-h, --help display help for commandadd
Use the add command to add components and dependencies to your React Native or Expo project.
pnpm dlx bna-ui add [component]
Options
Usage: bna-ui add [options] [components...]
add components to your project
Arguments:
components component names to add (optional, multiple)
Options:
--overwrite overwrite existing files
--dry-run show what would be installed without installing
-y, --yes skip confirmation prompts
--npm use npm as package manager
--yarn use yarn as package manager
--pnpm use pnpm as package manager
--bun use bun as package manager
-h, --help display help for commandExamples
Initialize a new project
pnpm dlx bna-ui init my-app
Initialize with Convex backend
pnpm dlx bna-ui convex my-convex-app
Initialize using specific package manager
pnpm dlx bna-ui init my-app --pnpm
Skip package installation
pnpm dlx bna-ui init my-app --skip-install
Add a button component
pnpm dlx bna-ui add button
Add multiple components
pnpm dlx bna-ui add button input card
Add component with overwrite
pnpm dlx bna-ui add button --overwrite
Preview what would be installed
pnpm dlx bna-ui add button --dry-run
Add components without confirmation
pnpm dlx bna-ui add button input --yes
Package Managers
The CLI supports multiple package managers. You can specify which one to use with the following flags:
--npm: Use npm (default)--yarn: Use yarn--pnpm: Use pnpm--bun: Use bun
If no package manager flag is specified, the CLI will use the default package manager for your system.
On This Page
initOptionsconvexOptionsaddOptionsExamplesInitialize a new projectInitialize with Convex backendInitialize using specific package managerSkip package installationAdd a button componentAdd multiple componentsAdd component with overwritePreview what would be installedAdd components without confirmationPackage Managers