How to do it...

  1. Let's start by opening the iOS project in Xcode. The project file is located in the ios/ directory of the project and should be called NativeUIComponent.xcodeproj.
  2. Select and right-click on the group that matches your project name and click on New File...:
  1. We'll be making a Cocoa class, so select Cocoa Class and click Next.
  2. We'll be creating a button, so let's name the Class Button and set the Subclass of to UIView and the Language as Objective-C:
  1. After clicking Next, we'll be prompted to choose the directory for the new ...

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.