Skip to content

Initial Setup

Quickly create a new project using the React Native Reusables CLI.

starter-base-template

Usage

Run the following command in your terminal, answer the prompts, and you’re good to go!

Terminal window
npx @react-native-reusables/cli@latest init

Features

File structure

  • Directoryapps
    • _layout.tsx
    • +not-found.tsx
    • index.tsx
  • Directoryassets
    • Directoryimages
      • adaptive-icon.png
      • favicon.png
      • icon.png
      • splash.png
  • Directorycomponents
    • Directoryui
      • avatar.tsx
      • button.tsx
      • card.tsx
      • progress.tsx
      • text.tsx
      • tooltip.tsx
    • ToggleTheme.tsx
  • Directorylib
    • Directoryicons
      • iconWithClassName.ts
      • Info.tsx
      • MoonStar.tsx
      • Sun.tsx
    • android-navigation-bar.tsx
    • constants.ts
    • useColorScheme.tsx
    • utils.ts
  • .gitignore
  • app.json
  • babel.config.js
  • global.css
  • index.js
  • metro.config.js
  • nativewind-env.d.ts
  • package.json
  • README.md
  • tailwind.config.js
  • tsconfig.json

Options

OptionDescriptionDefault
-c, --cwd <path>The working directoryCurrent directory
-o, --overwriteOverwrite existing files (for existing projects)false