mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Attempt to load at least jpg images for versions lower than 9
This commit is contained in:
@ -11,7 +11,7 @@ export class ImageSource implements definition.ImageSource {
|
||||
public ios: UIImage;
|
||||
|
||||
public loadFromResource(name: string): boolean {
|
||||
this.ios = UIImage.imageNamed(name);
|
||||
this.ios = UIImage.imageNamed(name) || UIImage.imageNamed(`${name}.jpg`);
|
||||
return this.ios != null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user