Skip to main content

Command Palette

Search for a command to run...

How to Create a React Native Project

Published
1 min readView as Markdown

If you’re starting a fresh React Native project and want to use the blazing fast Bun package manager instead of npm or yarn, the React Native CLI makes it super simple.


📌 Command

npx @react-native-community/cli@latest init AppName --skip-install --skip-git-init false --pm bun --package-name com.example.user --directory AppFolderName

🔍 Breakdown

  1. npx @react-native-community/cli@latest → Always use the latest React Native CLI.
  2. init AppName → Creates a new project (replace AppName with your app’s name, no spaces).
  3. --skip-install → Skips dependency installation for now.
  4. --skip-git-init false → Initializes a Git repo.
  5. --pm bun → Use Bun instead of npm/yarn.
  6. --package-name com.example.user → Custom Android package ID.
  7. --directory AppFolderName → Folder where the project will be created.

⚡ Next Steps

cd AppFolderName
bun install
bun start

In another terminal:

bun android
# or
bun ios

🎯 Why Bun?

  • 🚀 Faster dependency installs
  • ⚡ Better performance
  • 🛠️ Great for modern JavaScript/TypeScript projects

✅ Wrap Up

With just one command, you’ve bootstrapped a React Native project using Bun as the package manager, a custom app name, package ID, and Git setup — all ready for development.