fix(lib): Fix warning for deprecated RCTBridge interface for RCTImageLoader (#87)
This commit is contained in:
parent
7850dd538f
commit
c0a132daec
|
@ -176,7 +176,7 @@ RCT_EXPORT_METHOD(saveToCameraRoll:(NSURLRequest *)request
|
||||||
inputURI = request.URL;
|
inputURI = request.URL;
|
||||||
saveWithOptions();
|
saveWithOptions();
|
||||||
} else {
|
} 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) {
|
if (error) {
|
||||||
reject(kErrorUnableToLoad, nil, error);
|
reject(kErrorUnableToLoad, nil, error);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue