Starting with React Native CLI? Follow this step-by-step guide to set up your first React Native project successfully! π±π»
ποΈβ οΈ Please ensure all prerequisites are installed as mentioned in my last post. Check Prerequisites Here
1οΈβ£ . Install react native project π¦
πΉRun
npx @react-native-community/cli init newproject --version X.XX.X
π Learn more in the init docs
This command will create a new project for you. No additional setup is requiredβjust run the project! π
π Run the Project
1οΈβ£ Navigate to the project directory:
cd newproject
2οΈβ£ Start the Metro Bundler:
npm start
After running this command, you'll see some options:
- i β Run on iOS π±
- a β Run on Android π€
- r β Reload the app π
- d β Open the Developer Menu βοΈ
- j β Open DevTools π οΈ
Simply press the corresponding key to execute the desired action! π
Congratulations! π Youβve successfully set up and run your first React Native CLI project. Now, youβre ready to start building your app!
β Stay tuned! In the next post, Iβll explain the React Native project folder structure in detail. ππ¨βπ»
Letβs keep learning and growing together!
Top comments (0)