React Native has become quite popular among mobile developers recently, so I just couldn’t resist the urge to get acquainted with this framework to keep pace with the newest trends in mobile app development.
Why React Native?
Reviewing the project structure
Let’s get started! After everything is set up, you can create a project by entering a single command in the terminal:
react-native init TestProject
The structure of a newly generated project is pretty straightforward: it contains your Android and iOS projects, which can be opened via their usual IDEs – Android Studio and XCode – if needed. But while it’s possible to develop platform-specific parts of an application, the primary logic of the application will be located outside of the distinct Android and iOS projects.
node_modules directory contains all of the included dependencies.
index.android.js is the entry point for the Android app, while
index.ios.js serves the same purpose for the iOS app.
Let’s choose an IDE
One of the trickiest things, when you start with a new programming language, is choosing the right editor for your project. Besides, in our case, we have to find an editor suitable for cross-platform development, and I have a couple of insights on this matter...
I might go for Atom, a beautiful, lightweight, and easily customizable text editor with a nice autocomplete and convenient file system browsing. Of course, it hardly compares to Android Studio in a number of features, but it’s worth giving it a chance.
Click the link below to continue reading.