From 69d09db3f1f8d067ae91b055d90c1a4ac82904cd Mon Sep 17 00:00:00 2001 From: janstevcik21 Date: Thu, 25 Jan 2024 14:55:52 +0100 Subject: [PATCH] (feature): upgrade to not use imageLoader - deprecated warning issue resolved --- ios/RNPhotoView.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ios/RNPhotoView.m b/ios/RNPhotoView.m index 57185a8..ff18e3d 100644 --- a/ios/RNPhotoView.m +++ b/ios/RNPhotoView.m @@ -6,7 +6,10 @@ #import #import #import -#import +#import "RCTImageURLLoader.h" +#import "RCTImageShadowView.h" +#import "RCTImageView.h" +#import "RCTImageLoaderProtocol.h" @interface RNPhotoView() @@ -338,7 +341,7 @@ - (void)setSource:(NSDictionary *)source { } // use default values from [imageLoader loadImageWithURLRequest:request callback:callback] method - [_bridge.imageLoader loadImageWithURLRequest:request + [[_bridge moduleForName:@"ImageLoader" lazilyLoadIfNecessary:YES] loadImageWithURLRequest:request size:CGSizeZero scale:1 clipped:YES