Learn How to Write Your Own Android Apps With React Native

Posted on

React Native lets you build native mobile apps using JavaScript and React, the user interface library built by Facebook. It makes it easy to write code for both Android and iOS devices, without having to master both Java (Android) and C++/Objective C (iOS). computer science computer science computer science computer science computer science computer science

React Native code

computer science computer science computer science computer science computer science computer science

Here’s everything you need to know to get up and running with React Native.

React Native Prerequisites

If you’re already familiar with React, there’s not a lot you need to get started with React Native. You’ll need an internet connection, and you need to be able to connect to your computer over the network. You may also wish to read our guides on Linux command line basics, or beginner’s Windows command line.

Installing React Native

Getting React Native installed couldn’t be simpler, but you’ll need to install Node.js first.

We’ve discussed what is Node.js way back in 2013, but in short, it lets you write “proper” desktop and server applications using JavaScript.

Head over to the Node.js download page, and choose the Windows or macOS installer. Linux versions are also available, but you’ll need to do a bit more work to get those installed. computer science computer science computer science computer science computer science computer science

Node.js installer

computer science computer science computer science computer science computer science computer science

Once downloaded, run the installer, accept the license agreement, and install. Not only do you get Node.js, but you also get npm, which is a JavaScript package manager. With this, you can install other packages—like React Native!

The easiest way to start using React Native is with the create-react-native-app command line program. Open a new terminal or console, and use npm to install it:

Prev1 of 5Next

Leave a Reply

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