mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
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:
parent
adea8d5fc9
commit
6424c8b2e0
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user