Skip to content

Commit 3c22c97

Browse files
committed
fix(ios): backwards compatible RCTImageLoader.h handling fixes #1141
1 parent 5452144 commit 3c22c97

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ios/Elements/RNSVGImage.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,20 @@
99
#import "RNSVGImage.h"
1010
#import "RCTConvert+RNSVG.h"
1111
#import <React/RCTImageSource.h>
12+
13+
#if __has_include(<React/RCTImageLoader.h>)
14+
15+
#import <React/RCTImageLoader.h>
16+
17+
#else
18+
1219
#import <React/RCTImageURLLoader.h>
1320
#import <React/RCTImageShadowView.h>
1421
#import <React/RCTImageView.h>
1522
#import <React/RCTImageLoaderProtocol.h>
23+
24+
#endif
25+
1626
#import <React/RCTLog.h>
1727
#import "RNSVGViewBox.h"
1828

0 commit comments

Comments
 (0)