mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
Update header imports for RN 0.40 (#670)
This PR has been tested with the other two PRs for the RN 0.40.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#if __has_include("RCTEventEmitter.h")
|
||||
#import "RCTEventEmitter.h"
|
||||
#import <React/RCTEventEmitter.h>
|
||||
#else
|
||||
#import "React/RCTEventEmitter.h" // Required when used as a Pod in a Swift project
|
||||
#endif
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#import "RCTAssert.h"
|
||||
#import "RCTBridgeModule.h"
|
||||
#import "RCTConvert.h"
|
||||
#import "RCTEventDispatcher.h"
|
||||
#import "RCTRootView.h"
|
||||
#import "RCTUtils.h"
|
||||
#import <React/RCTAssert.h>
|
||||
#import <React/RCTBridgeModule.h>
|
||||
#import <React/RCTConvert.h>
|
||||
#import <React/RCTEventDispatcher.h>
|
||||
#import <React/RCTRootView.h>
|
||||
#import <React/RCTUtils.h>
|
||||
|
||||
#import "CodePush.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "CodePush.h"
|
||||
#import "RCTConvert.h"
|
||||
#import <React/RCTConvert.h>
|
||||
|
||||
// Extending the RCTConvert class allows the React Native
|
||||
// bridge to handle args of type "CodePushInstallMode"
|
||||
@@ -11,4 +11,4 @@ RCT_ENUM_CONVERTER(CodePushInstallMode, (@{ @"codePushInstallModeImmediate": @(C
|
||||
CodePushInstallModeImmediate, // Default enum value
|
||||
integerValue)
|
||||
|
||||
@end
|
||||
@end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import "CodePush.h"
|
||||
#import "RCTConvert.h"
|
||||
#import <React/RCTConvert.h>
|
||||
|
||||
// Extending the RCTConvert class allows the React Native
|
||||
// bridge to handle args of type "CodePushUpdateState"
|
||||
@@ -12,4 +12,4 @@ RCT_ENUM_CONVERTER(CodePushUpdateState, (@{ @"codePushUpdateStateRunning": @(Cod
|
||||
CodePushUpdateStateRunning, // Default enum value
|
||||
integerValue)
|
||||
|
||||
@end
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user