How to Create a React Native Project

Vinay SinghVinay Singh
1 min read

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.

0
Subscribe to my newsletter

Read articles from Vinay Singh directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Vinay Singh
Vinay Singh