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