Hello friends, In our previous tutorial we had learnt about Installing YARN in our windows computer. Now in this tutorial we would go further and Install react native using YARN. We would also create new react native project using Yarn and then run it in our Android Emulator. I’ll share the final app screenshot with you guys. So in this tutorial we would learn about Install Create Run React Native Project using YARN.
Contents in this project Install Create Run React Native Project using YARN :-
1. First of all we have to install Yarn in our computer. So read my this guide for installing Yarn in windows system.
2. Now open your Command Prompt then execute below command to install React Native CLI in your computer.
1
|
yarn global add react–native–cli
|
3. Now after install CLI we have to install React Native itself. So execute below command to install react native.
1
|
yarn add react–native
|
4. Now we are ready to go, Next step is to create React Native project in our computer. So first of all Go inside any desired folder in which you want to create your new react native project. Click on the Address Bar and type CMD and press enter. You’ll see that your current open folder location will be open inside Command Prompt. Now execute below command to create new react native project at your desired location.
1
|
react–native init YourProjectName
|
5. Now run your project using
react–native run–android command in your emulator. Below is the screenshot of my newly created App default screen.