Skip to content
New issue

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

Different image sizes #4

Open
feruzm opened this issue Jan 28, 2021 · 4 comments
Open

Different image sizes #4

feruzm opened this issue Jan 28, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@feruzm
Copy link

feruzm commented Jan 28, 2021

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 WrathChaos self-assigned this Jan 28, 2021
@WrathChaos
Copy link
Owner

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
Copy link
Owner

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

@feruzm
Copy link
Author

feruzm commented Jan 29, 2021

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
Copy link
Owner

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

@WrathChaos WrathChaos added the enhancement New feature or request label Jan 29, 2021
@WrathChaos WrathChaos added the help wanted Extra attention is needed label Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants