diff --git a/React/Base/RCTUtils.m b/React/Base/RCTUtils.m index 37fff6a2a530e0..bc6079959952f7 100644 --- a/React/Base/RCTUtils.m +++ b/React/Base/RCTUtils.m @@ -700,10 +700,12 @@ BOOL RCTIsLocalAssetURL(NSURL *__nullable imageURL) } UIImage *image = nil; - if (bundle) { - image = [UIImage imageNamed:imageName inBundle:bundle compatibleWithTraitCollection:nil]; - } else { - image = [UIImage imageNamed:imageName]; + if (imageName) { + if (bundle) { + image = [UIImage imageNamed:imageName inBundle:bundle compatibleWithTraitCollection:nil]; + } else { + image = [UIImage imageNamed:imageName]; + } } if (!image) {