Skip to content

Commit 8e9adf7

Browse files
sscaff14ian
authored andcommitted
Get rid of deprecation warning on iOS. (#38)
1 parent ad4a407 commit 8e9adf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RCTImageResizer/RCTImageResizer.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void saveImage(NSString * fullPath, UIImage * image, float quality)
5050
CGSize newSize = CGSizeMake(width, height);
5151
NSString* fullPath = generateFilePath(@"jpg", outputPath);
5252

53-
[_bridge.imageLoader loadImageWithTag:path callback:^(NSError *error, UIImage *image) {
53+
[_bridge.imageLoader loadImageWithURLRequest:[RCTConvert NSURLRequest:path] callback:^(NSError *error, UIImage *image) {
5454
if (error || image == nil) {
5555
if ([path hasPrefix:@"data:"] || [path hasPrefix:@"file:"]) {
5656
NSURL *imageUrl = [[NSURL alloc] initWithString:path];

0 commit comments

Comments
 (0)