Learning React Native, Chapter 3: Building Your First Application
The purpose of this chapter is straightforward. We will write our first app, and deploy it to a device. Setting Up Your Environment There are two approaches to developing React Native: create-react-native-app - used in this book most of the time. It is quicker and easier installation, but only supports JS apps. full react-native install - Allows writing Objective-C and Java components Developer Setup: Create React Native App npm install -g React Native uses the node package manager. To us this, you will need to make sure you have Node.js installed. Links: https://nodejs.org/en/download/ Creating Your Application with create-react-native-app create-react-native-app first_project This will install all the code you need to start writing a react native app. Previewing You App on iOS or Android Starting Your first project should be easy. Run npm start From the terminal. I had an issue starting my server, but the ins...