Remove CUIICatalog invalid asset name supplied error

Summary:
Thanks for submitting a pull request! Please provide enough information so that others can review your pull request:

(You can skip this if you're fixing a typo or adding an app to the Showcase.)

Explain the **motivation** for making this change. What existing problem does the pull request solve?

Prefer **small pull requests**. These are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.

**Test plan (required)**

Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.

Make sure tests pass on both Travis and Circle CI.

**Code formatting**

Look around. Match the style of the rest of the codebase. See also the simple [style guide](https://github.com/facebook/react-native/blob/master/CONTRIBUTING.md#style-guide).

For more info, see the ["Pull Requests" section of our "Contributing" guidelines](https://github.com/facebook/react-native/blob/mas
Closes https://github.com/facebook/react-native/pull/7535

Differential Revision: D3509757

fbshipit-source-id: 70ff6c9c137c766ccb1173921f08571f48cb4f0b
This commit is contained in:
Michael McKinley 2016-07-01 11:19:55 -07:00 коммит произвёл Facebook Github Bot 0
Родитель adea8d5fc9
Коммит 6424c8b2e0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -900,7 +900,7 @@ RCT_ENUM_CONVERTER(RCTAnimationType, (@{
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;