Skip to content

Commit

Permalink
fix(swift): added bridging headers
Browse files Browse the repository at this point in the history
  • Loading branch information
peggyrayzis committed Jul 11, 2017
1 parent 5d0c583 commit d15c939
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions templates/ui-components/ios-swift/Template-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Created by react-native-create-bridge
// {{template}}-Bridging-Header.h

// import RCTBridgeModule
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#elif __has_include(“RCTBridgeModule.h”)
#import “RCTBridgeModule.h”
#else
#import “React/RCTBridgeModule.h” // Required when used as a Pod in a Swift project
#endif

// import RCTEventEmitter
#if __has_include(<React/RCTViewManager.h>)
#import <React/RCTViewManager.h>
#elif __has_include(“RCTViewManager.h”)
#import “RCTViewManager.h”
#else
#import “React/RCTViewManager.h” // Required when used as a Pod in a Swift project
#endif

0 comments on commit d15c939

Please sign in to comment.