How can I get the width and height of an image in NativeScript?
I've tried referencing like:
<Image src="~/assets/images/logo.jpg" ref="img1"/>
And getting the width like:
this.$refs.img1.getMeasuredWidth
But no luck.
How can I get the width and height of an image in NativeScript?
I've tried referencing like:
<Image src="~/assets/images/logo.jpg" ref="img1"/>
And getting the width like:
this.$refs.img1.getMeasuredWidth
But no luck.