fix(lib): Fix warning for deprecated RCTBridge interface for RCTImageLoader (#87)

This commit is contained in:
Tom Targosz 2019-11-07 07:14:12 -06:00 committed by Bartol Karuza
parent 7850dd538f
commit c0a132daec
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ RCT_EXPORT_METHOD(saveToCameraRoll:(NSURLRequest *)request
inputURI = request.URL;
saveWithOptions();
} else {
[self.bridge.imageLoader loadImageWithURLRequest:request callback:^(NSError *error, UIImage *image) {
[[self->_bridge moduleForClass:[RCTImageLoader class]] loadImageWithURLRequest:request callback:^(NSError *error, UIImage *image) {
if (error) {
reject(kErrorUnableToLoad, nil, error);
return;