Skip to content

Commit

Permalink
#241: change imports for react-native 0.39.x (#242)
Browse files Browse the repository at this point in the history
* change imports for react-native 0.39.x

* change imports for react-native 0.40.x

* order of imports matter

* Fix multiple import problem
  • Loading branch information
generalpiston authored and benvium committed Feb 20, 2017
1 parent ff93403 commit 55dd2a7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions IntegrationTests/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

#import "AppDelegate.h"

#if __has_include("RCTRootView.h")
#import "RCTRootView.h"
#else
#import <React/RCTRootView.h>
#endif

@implementation AppDelegate

Expand Down
9 changes: 9 additions & 0 deletions RNFSManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@
// Copyright (c) 2015 Johannes Lumpe. All rights reserved.
//

#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif

#if __has_include("RCTLog.h")
#import "RCTLog.h"
#else
#import <React/RCTLog.h>
#endif

@interface RNFSManager : NSObject <RCTBridgeModule>

Expand Down
8 changes: 7 additions & 1 deletion RNFSManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
//

#import "RNFSManager.h"
#import <React/RCTBridge.h>

#import "NSArray+Map.h"
#import "Downloader.h"
#import "Uploader.h"

#if __has_include("RCTEventDispatcher.h")
#import "RCTEventDispatcher.h"
#else
#import <React/RCTEventDispatcher.h>
#endif

#import <CommonCrypto/CommonDigest.h>

@interface RNFSManager()
Expand Down

0 comments on commit 55dd2a7

Please sign in to comment.