React native – 1 : Installation and Project Create

Step 1 : Download node and install https://nodejs.org/en/download/ .

Step 2 :  Open Command line for Windows as Administration mode and Terminal for mac/ linux.

Sote ::  For mac and linux please add

[java] sudo [/java]

if the commands in bellow are not works.

Step 3 : Install npm

[java] install npm [/java]

Step 4 : Initialize react native

[java] npm install -g create-react-native-app [/java]

Step 5 :  Go to your any project directory and create new project named FirstProject.

[java] create-react-native-app FirstReactProject [/java]

Step 6 :  Go to your newly created project directory.

[java] cd FirstReactProject [/java]

Step 7 :  Run Project.

[java] npm start [/java]

Step 8 :  For Android Phone . Go to play store and install expo in your android phone.

Step 9 :  after start project a QR will be generated on command mode .

Step 10 :  Open expo in android/ios phone and scan the QR code.

And That’s All . If you are mac user then there may have the following problem in npm run .

Here is the Solution.

Leave a Reply

Your email address will not be published. Required fields are marked *