We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firstly, I love new the asset management strategy.
//before 0.14 var img = require('image!xxx'); img.width, img.height
var img = require('./img/abc.png'); //I see img is compiled index as integer type
So how can I get image width/height?
The text was updated successfully, but these errors were encountered:
Find a way to handle this:
// for react native 0.14 + var resolveAssetSource = require('resolveAssetSource'); var imgSrc = resolveAssetSource(require('./some.png')); console.log(imgSrc.width, imgSrc.height);
Sorry, something went wrong.
No branches or pull requests
Firstly, I love new the asset management strategy.
So how can I get image width/height?
The text was updated successfully, but these errors were encountered: