Preloading/Caching images? #1941
SvetlozarValchev
started this conversation in
General
Replies: 2 comments 2 replies
-
absolutely, useImage is just a shortcut for:
from there you can use any loading/caching strategy you wish. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Sorry for necroing this old thread, but caching is (in my opinion) a non-trivial task. Several good image-caching libraries exist for react-native, but none of them integrate with Skia (as far as I know). I am now writing our own caching strategy, but it would be a highly appreciated feature for us to have it built-in into Skia somehow! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to preload or cache the images using useImage?
I've made this simple hook, but the app is crashing when trying to access the image once it's cached:
I'm using Expo 49.
Beta Was this translation helpful? Give feedback.
All reactions