Hey there,
React Native is an open-source framework for building robust mobile applications released in 2015. The catch is that web developers with their existing knowledge of JavaScript and familiarity with React can easily catch up with this mobile framework, unlike learning a new language for Android applications like Flutter or Java.
Today, we are going to see how to build a simple react-native UI.
💡I am assuming you have already set up Android SDK and configured your device for debugging.
Open the command prompt or the terminal of your choice.
Create a new directory:
$ mkdir mobile-development
Change the directory where you want your files to be located:
$ cd mobile-development
Initialize a new react native project. You can rename your project by replacing 'FirstProject' with the desired name for your application.
npx react-native init FirstProject
If you have an Android emulator installed, this will open up your application in the emulator. If not, you can use your physical mobile device to build and debug your application.
Read more: How to set up wireless debugging for mobile application development
If you get a similar output, congratulations you have created your first application in React Native.
Thanks!
#2Articles1Week