WrathChaos / react-native-progressive-fast-image

Customizable progressive image for React Native with FastImage
https://freakycoder.com
110 stars 14 forks source link

Different image sizes #4

Open feruzm opened 3 years ago

feruzm commented 3 years ago

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 component with custom animation, wanted to give this library a try...

WrathChaos commented 3 years ago

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

WrathChaos commented 3 years ago

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

feruzm commented 3 years ago

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.

WrathChaos commented 3 years ago

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