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

architecture design enhancement #11

Closed
jjhesk opened this issue Feb 21, 2017 · 2 comments
Closed

architecture design enhancement #11

jjhesk opened this issue Feb 21, 2017 · 2 comments
Labels

Comments

@jjhesk
Copy link

jjhesk commented Feb 21, 2017

i have a question. Can I can an notification when the all the images are cached hit in the local storage?

assume i have

images = [
uri1, uri2, uri3, ...
]
should be better when all of these paths are cached successfully and have the final notification. Can I also have the size dimension of each image in return automatically?

@wcandillon
Copy link
Owner

@jjhesk Did you look at the on() method: https://github.com/wcandillon/react-native-img-cache#onuri-observer-immutable? When notified, you can use Image.getSize() to get the size of the image. Does this fit your requirements?

@wcandillon
Copy link
Owner

@jjhesk I'm closing this issue for now, feel free to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants