Skip to Content
Learning React Native
book

Learning React Native

by Bonnie Eisenman
December 2015
Beginner
200 pages
5h 48m
English
O'Reilly Media, Inc.
Content preview from Learning React Native

Chapter 3. Building Your First Application

In this chapter, we will cover how to set up your local development environment for working with React Native. Then, we will go through the basics of creating a simple application, which you will then be able to deploy to your own iOS or Android device.

Setting Up Your Environment

Setting up your development environment will enable you to follow along with the examples in the book, and will let you write your own applications!

Instructions for installing React Native can be found in the official React Native documentation. The official site will be your most up-to-date reference point for specific installation steps, but we’ll walk through them here as well.

You will need to use Homebrew, a common package manager for OS X, in order to install React Native’s dependencies. Throughout this book, we will assume that you are developing on OS X, which allows you to write both iOS and Android applications.

Once you have Homebrew installed, run the following from the command line:

brew install node
brew install watchman
brew install flow

The React Native packager uses both node and watchman, so if the packager gives you trouble in the future it’s worth updating these dependencies. flow is Facebook’s type-checking library, and is also used by React Native. (If you want to enable type-checking in your React Native projects, you can use flow!)

If you encounter difficulties, you may need to update brew and upgrade any packages (note that these ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

React Native in Action

React Native in Action

Nader Dabit, Nickie Buckner
React Native Cookbook

React Native Cookbook

Jonathan Lebensold

Publisher Resources

ISBN: 9781491929049Errata Page