mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-17 19:46:10 +08:00
RN 0.40 兼容
This commit is contained in:
@@ -6,6 +6,15 @@
|
||||
// Copyright © 2016 erica. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_include(<React/RCTBridge.h>)
|
||||
#import <React/RCTHotUpdate.h>
|
||||
#import <React/RCTHotUpdateDownloader.h>
|
||||
#import "React/RCTEventDispatcher.h"
|
||||
#import <React/RCTConvert.h>
|
||||
#import <React/RCTHotUpdateManager.h>
|
||||
#import <React/RCTLog.h>
|
||||
#else
|
||||
|
||||
#import "RCTHotUpdate.h"
|
||||
#import "RCTHotUpdateDownloader.h"
|
||||
#import "RCTEventDispatcher.h"
|
||||
@@ -13,6 +22,8 @@
|
||||
#import "RCTHotUpdateManager.h"
|
||||
#import "RCTLog.h"
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
static NSString *const keyUpdateInfo = @"REACTNATIVECN_HOTUPDATE_INFO_KEY";
|
||||
static NSString *const paramPackageVersion = @"packageVersion";
|
||||
@@ -447,4 +458,4 @@ RCT_EXPORT_METHOD(markSuccess)
|
||||
return version;
|
||||
}
|
||||
|
||||
@end
|
||||
@end
|
||||
|
Reference in New Issue
Block a user