Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Feb 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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