Closed Salmankhan033 closed 1 year ago
The output looks correct to me - returns an array of ImageAsset
s - in your logs you are logging out an ImageAsset (doesn't say in the console, but looks like it):
selected... {
"observers": {}
...
"keepAspectRatio": true
...
}
^ that's an ImageAsset instance
Depending on what you want to do with the image... For example you can display it in your app:
<Image src={selected} ...
should display the image
ImageAsset API: https://docs.nativescript.org/api-reference/classes/imageasset
As of 2.0 it would be selected.asset
. See docs for 2.0 updates.
When I try to get an image in IOS Simulator then it returns an empty object. How to get images from storage? I am using react hooks Versions:
Code:
OUTPUT: