How to do it...

  1. We'll begin by creating a new vanilla React Native app that will serve as the root of our project. Let's name the new project EmbedApp. You can create the new React Native app with the CLI using the following command:
react-native init EmbedApp
  1. By creating the new app with the CLI, the ios and android subfolders will be automatically created for us, holding the native code for each platform. Let's move the native app we created in the Getting ready section to the ios folder so that it lives at /EmbedApp/ios/EmbeddedApp.
  2. Now that we have the basic structure we need for the app, we'll need to add a Podfile. This is a file, similar to package.json in web development, that keeps track of all of the cocoapod dependencies (called ...

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.