Skip to content

Commit

Permalink
Remove CUIICatalog invalid asset name supplied error
Browse files Browse the repository at this point in the history
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 facebook#7535

Differential Revision: D3509757

fbshipit-source-id: 70ff6c9c137c766ccb1173921f08571f48cb4f0b
  • Loading branch information
mmckinley8 authored and Morgan Pretty committed Aug 24, 2016
1 parent cdde014 commit 75624d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Base/RCTConvert.m
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,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;
Expand Down

0 comments on commit 75624d1

Please sign in to comment.