diff --git a/React/Base/RCTConvert.m b/React/Base/RCTConvert.m index f5c6924d6a0380..1a4fd5df75d009 100644 --- a/React/Base/RCTConvert.m +++ b/React/Base/RCTConvert.m @@ -882,7 +882,7 @@ + (UIImage *)UIImage:(id)json NSString *scheme = URL.scheme.lowercaseString; if ([scheme isEqualToString:@"file"]) { NSString *assetName = RCTBundlePathForURL(URL); - image = [UIImage imageNamed:assetName]; + image = assetName ? [UIImage imageNamed:assetName] : nil; if (!image) { // Attempt to load from the file system NSString *filePath = URL.path;