react-native-progressive-fast-image icon indicating copy to clipboard operation
react-native-progressive-fast-image copied to clipboard

Different image sizes

Open feruzm opened this issue 5 years ago • 4 comments

Is it possible to detect or define custom image sizes ?

react-native-image-size We were using this to detect size and then set into native <Image> component with custom animation, wanted to give this library a try...

feruzm avatar Jan 28 '21 19:01 feruzm

Hello @feruzm, Actually, this is a completely different library approach then what you are looking for, however, maybe I can add this feature in the future but as I said, not the two same libraries with the react-native-image-size

kuraydev avatar Jan 29 '21 06:01 kuraydev

@feruzm have you ever tried this library: https://github.com/ihor/react-native-scalable-image

kuraydev avatar Jan 29 '21 08:01 kuraydev

I wasn’t comparing the two, was just curious if onLoad or some callback could catch the image size or ratio of image from thumbnail. Right now I am using above mentioned library to catch the size and then giving that size to this component which is working ok, but having one component to do both of that would be optimal because thumbnail is downloaded by this library anyway...

fast image or native image component has onLoad, callback which I think returns width and height values.

feruzm avatar Jan 29 '21 09:01 feruzm

I will research this weekend :) Also, PR's are welcome.

kuraydev avatar Jan 29 '21 11:01 kuraydev