Skip to content

Commit

Permalink
Merge pull request #15 from shoutem/feature/add-dynamic-imports
Browse files Browse the repository at this point in the history
Add dynamic import for RCTBridgeModule
  • Loading branch information
sirhotsauce committed Mar 9, 2017
2 parents 96dfbfd + 3c54237 commit aeebbfc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ios/RNShopify.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
// 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 "Buy.h"

@interface RNShopify : UIViewController <RCTBridgeModule, BUYPaymentProviderDelegate>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-shopify",
"version": "0.2.1",
"version": "0.2.2",
"description": "React Native bridge for Shopify Mobile Buy SDK for iOS and Android",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit aeebbfc

Please sign in to comment.