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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.