How to Create a React Native Project

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
npx @react-native-community/cli@latest
โ Always use the latest React Native CLI.init AppName
โ Creates a new project (replaceAppName
with your appโs name, no spaces).--skip-install
โ Skips dependency installation for now.--skip-git-init false
โ Initializes a Git repo.--pm bun
โ Use Bun instead of npm/yarn.--package-name com.example.user
โ Custom Android package ID.--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.
React Native BunBun package managerAndroid package nameGit initializationFast React Native installReact NativeReact Native CLI#react-native setupmobile app developmentJavaScript performance
Written by
