I want to use Image.getSize (https://facebook.github.io/react-native/docs/image.html) to get the size of my image but the first argument require the image source to be in URI but I can't use URI with static file, I can only use Require.
Therefore, is it possible is to use Image.getSize on static file or do I have to find another way?
You can use
Image.resolveAssetSource(source).width
andImage.resolveAssetSource(source).height
.Reference in React Native docs: https://facebook.github.io/react-native/docs/image.html#resolveassetsource
Through official document
Then use
image.width
andimage.height
You can use resolveAssetSource (from react-native/Libraries/Image/resolveAssetSource) to get the image's size.
and