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.
Start your free trial

You might also like

Learning React Native, 2nd Edition

Learning React Native, 2nd Edition

Bonnie Eisenman
React and React Native - Fourth Edition

React and React Native - Fourth Edition

Adam Boduch, Roy Derks, Mikhail Sakhniuk
Learning React

Learning React

Kirupa Chinnathambi

Publisher Resources

ISBN: 9781491929049Errata PageSupplemental Content