Get rid of deprecation warning on iOS. (#38)

This commit is contained in:
Steven Scaffidi 2016-08-23 15:24:30 -07:00 committed by Florian Rival
parent ad4a4070eb
commit 8e9adf7a13
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ RCT_EXPORT_METHOD(createResizedImage:(NSString *)path
CGSize newSize = CGSizeMake(width, height);
NSString* fullPath = generateFilePath(@"jpg", outputPath);
[_bridge.imageLoader loadImageWithTag:path callback:^(NSError *error, UIImage *image) {
[_bridge.imageLoader loadImageWithURLRequest:[RCTConvert NSURLRequest:path] callback:^(NSError *error, UIImage *image) {
if (error || image == nil) {
if ([path hasPrefix:@"data:"] || [path hasPrefix:@"file:"]) {
NSURL *imageUrl = [[NSURL alloc] initWithString:path];