File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 9
9
#import " RNSVGImage.h"
10
10
#import " RCTConvert+RNSVG.h"
11
11
#import < React/RCTImageSource.h>
12
- #import < React/RCTImageLoader.h>
12
+ #import < React/RCTImageURLLoader.h>
13
+ #import < React/RCTImageShadowView.h>
14
+ #import < React/RCTImageView.h>
15
+ #import < React/RCTImageLoaderProtocol.h>
13
16
#import < React/RCTLog.h>
14
17
#import " RNSVGViewBox.h"
15
18
@@ -40,7 +43,7 @@ - (void)setSrc:(id)src
40
43
_reloadImageCancellationBlock = nil ;
41
44
}
42
45
43
- _reloadImageCancellationBlock = [self .bridge.imageLoader loadImageWithURLRequest: [RCTConvert NSURLRequest: src] callback: ^(NSError *error, UIImage *image) {
46
+ _reloadImageCancellationBlock = [[ self .bridge moduleForName: @" ImageLoader " ] loadImageWithURLRequest: [RCTConvert NSURLRequest: src] callback: ^(NSError *error, UIImage *image) {
44
47
dispatch_async (dispatch_get_main_queue (), ^{
45
48
self->_image = CGImageRetain (image.CGImage );
46
49
self->_imageSize = CGSizeMake (CGImageGetWidth (self->_image ), CGImageGetHeight (self->_image ));
You can’t perform that action at this time.
0 commit comments