Skip to content

Commit

Permalink
fix(ios): backwards compatible RCTImageLoader.h handling fixes #1141
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Oct 19, 2019
1 parent 5452144 commit 3c22c97
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ios/Elements/RNSVGImage.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,20 @@
#import "RNSVGImage.h"
#import "RCTConvert+RNSVG.h"
#import <React/RCTImageSource.h>

#if __has_include(<React/RCTImageLoader.h>)

#import <React/RCTImageLoader.h>

#else

#import <React/RCTImageURLLoader.h>
#import <React/RCTImageShadowView.h>
#import <React/RCTImageView.h>
#import <React/RCTImageLoaderProtocol.h>

#endif

#import <React/RCTLog.h>
#import "RNSVGViewBox.h"

Expand Down

0 comments on commit 3c22c97

Please sign in to comment.