DEV Community

loading...

Discussion on: How to use Swift in your React Native app

Collapse
ivan_ghost_ee1510e3d807a3 profile image
Ivan Ghost • Edited

Don't forget to add this to the bridge file:

#import <React/RCTBridgeModule.h>
#import <React/RCTViewManager.h>
#import <React/RCTLog.h>
Enter fullscreen mode Exit fullscreen mode

When you first create a swift file, you will be prompted to create a bridge. Create it and add this code to it.