How to do it...

  1. Let's start by opening the native layer of the new project in Xcode. The first thing we need to do is adjust the project's Build Settings. This can be done by selecting the root project in the left panel, then choosing the Build Settings tab along the top of the middle panel:

  1. We'll need to add a new entry to the Header Search Paths field:

For the project to know the location of the React Native JavaScript, it needs the $(SRCROOT)/../node_modules/react-native/Libraries value. Let's add it as a recursive entry:

  1. We also need ...

Get React Native Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.