If you want to build mobile apps for both Android and iOS. What should you learn? The individual native languages for each app i.e, Java for Android and Swift/Objective-C for iOS?, Actually NO. Native Android and iOS development are quite different and can be expensive – first, the language itself is quite different, and second, all the underlying API’s are different – the way of using the GPS is different, the way to create animations is different, the way you make network calls is different.
We’re always looking for shorter development cycles, quicker time to deployment, and better app performance. And there are so many hybrid mobile frameworks such as NativeScript, React Native, Ionic, Xamarin, PhoneGap, etc.
- Basic Knowledge of HTML, CSS and JS.
- Basic Knowledge of ReactJS.
- NodeJs should be installed in your system.
Installation: Here we will use the Expo CLI version that will much smoother to run your React Native applications. Follow the below steps one by one to setup your React native environment.
- Step 1: Open your terminal and run the bellow command.
npm install -g expo-cli
- Step 2: Now expo-cli is globally installed so you can create the project folder by running the below command.
expo init "projectName"
- Step 3: Now go into the created folder and start the server by using the following command.
cd "projectName" npm start web
Advantages over other frameworks and Languages: Whenever there is an update for apps written in Swift/Objective-C or Java, the whole app needs to be recompiled and a new version has to be distributed to the App Store again. All this can take a few weeks depending on the App Store review process.
To know that how React Native works? you can visit this article.