mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Image src and imageSource properties defined
This commit is contained in:
@@ -14,7 +14,7 @@ export function createPage() {
|
||||
StackLayout.orientation = enums.Orientation.horizontal;
|
||||
|
||||
var image = new imageModule.Image();
|
||||
image.source = logoImageSource;
|
||||
image.imageSource = logoImageSource;
|
||||
image.width = 100;
|
||||
image.stretch = enums.Stretch.aspectFit;
|
||||
StackLayout.addChild(image);
|
||||
|
||||
Reference in New Issue
Block a user