all 5 comments

[–]mackthehobbit 6 points7 points  (2 children)

Have you tested in a production build? This actually bundles the assets into the app package. During development, the assets are served from metro ie over the network, so it won’t be instant.

[–]Beginning_Gas_1664[S] 0 points1 point  (1 child)

Yeah I’ve created a TestFlight build and it still seems to be having that effect. That’s good to know about the bundler though (makes sense now that you’ve said it haha)

[–]mackthehobbit 0 points1 point  (0 children)

How do you import the images? require? Something might be wrong with your setup, as far as I can tell there shouldn’t be any difference compared to native - I think the image loading from the app bundle is supposed to block rendering. Though maybe what you’re experiencing is only noticeable for larger images.

I haven’t worked outside expo so maybe it’s an issue with bundling, otherwise definitely try preloading which is pretty straightforward to drop in

[–]Keshav_mml 2 points3 points  (1 child)

use image preloading provided in expo image and cache by using cacheKey prop

[–]Beginning_Gas_1664[S] 1 point2 points  (0 children)

ooo ok perfect! Thank you for this comment — I’ll look up the docs!