This is a introductory blog post for React Native Here we will learn how we can setup react native environment and we will run a simple program with react native.
There are different ways to we can setup and run react native application on but here we will be using Expo for creating our react native app and we will using expo’s client application on mobile phone to run react native application but first lets see what is react native.
npm install -g expo-cli
You run the above command on your cmd but you must have nodejs installed if you don’t have node js installed go to https://nodejs.org/en/ and download node js then run above command
Once you have installed expo-cli then go to the directory where you want to build application then type above command after this it will ask you to enter name of project and whether you want a blank project or a tab based template for now we will chose blank project.
Once you have created project then type command above it will show QR code and IP address that you can use in Expo mobile app to run the application
This was an introductory blog post on react native in next post we would discuss how we can create custom application and will create a simple login app and will understand the basic concept of component states and props if you want to explore more go to https://facebook.github.io/react-native/docs/getting-started this is official react native documentation
See you people soon until then
Happy Coding <3