#241: change imports for react-native 0.39.x (#242)

* change imports for react-native 0.39.x

* change imports for react-native 0.40.x

* order of imports matter

* Fix multiple import problem
This commit is contained in:
Abraham Elmahrek 2017-02-20 01:05:45 -08:00 committed by Ben Clayton
parent ff93403bf9
commit 55dd2a7624
3 changed files with 20 additions and 1 deletions

View File

@ -9,7 +9,11 @@
#import "AppDelegate.h"
#if __has_include("RCTRootView.h")
#import "RCTRootView.h"
#else
#import <React/RCTRootView.h>
#endif
@implementation AppDelegate

View File

@ -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>

View File

@ -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()