mirror of
https://github.com/zhigang1992/react-native-vector-icons.git
synced 2026-01-12 17:42:58 +08:00
Backwards compatibility for RN < 0.40 (#425)
* Backwards compatibility for RN < 0.40 * Updating examples with backwards compatibility for RN < 0.40 * Revert "Updating examples with backwards compatibility for RN < 0.40" This reverts commit d6a7cdf3adf177c543b26ab9f75a93705695f09c. * Reverting more changes to examples. See 739da00ea9c529ad2e90f543dd34bd7aed97aa6b
This commit is contained in:
committed by
Joel Arvidsson
parent
48f7d81999
commit
ad4f0c0d60
@@ -6,8 +6,16 @@
|
||||
// Copyright (c) 2015 Joel Arvidsson. All rights reserved.
|
||||
//
|
||||
|
||||
#if __has_include(<React/RCTBridgeModule.h>)
|
||||
#import <React/RCTBridgeModule.h>
|
||||
#else // Compatibility for RN version < 0.40
|
||||
#import "RCTBridgeModule.h"
|
||||
#endif
|
||||
#if __has_include(<React/RCTLog.h>)
|
||||
#import <React/RCTLog.h>
|
||||
#else // Compatibility for RN version < 0.40
|
||||
#import "RCTLog.h"
|
||||
#endif
|
||||
|
||||
@interface RNVectorIconsManager : NSObject <RCTBridgeModule>
|
||||
|
||||
|
||||
@@ -7,9 +7,21 @@
|
||||
//
|
||||
|
||||
#import "RNVectorIconsManager.h"
|
||||
#if __has_include(<React/RCTConvert.h>)
|
||||
#import <React/RCTConvert.h>
|
||||
#else // Compatibility for RN version < 0.40
|
||||
#import "RCTConvert.h"
|
||||
#endif
|
||||
#if __has_include(<React/RCTBridge.h>)
|
||||
#import <React/RCTBridge.h>
|
||||
#else // Compatibility for RN version < 0.40
|
||||
#import "RCTBridge.h"
|
||||
#endif
|
||||
#if __has_include(<React/RCTUtils.h>)
|
||||
#import <React/RCTUtils.h>
|
||||
#else // Compatibility for RN version < 0.40
|
||||
#import "RCTUtils.h"
|
||||
#endif
|
||||
|
||||
@implementation RNVectorIconsManager
|
||||
|
||||
|
||||
Reference in New Issue
Block a user