Support images from app bundle
See original GitHub issueThe native Image
component allows us to use images included via Xcode asset catalogs or in the Android drawable folder, using the image name without the extension:
<Image source={{ uri: 'imageNameWithoutExtension' }} style={{ width: 40, height: 40 }} />
This is way more performant than sending images over the JS bridge every time they are needed. Unfortunately replacing Image
with FastImage
here breaks the possibility to use bundled images. Can support for this be added?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:5
Top Results From Across the Web
Load image from app bundle based o… - Apple Developer
I need to load some images that are large so I do not want them cached, so I use UIImage(contentsOfFile:path). I would like...
Read more >adding images to app bundle permanently - Stack Overflow
Put/Copy your images inside xcode's project folder (/Users/SomeUser/mySuperProject/) and then add the images to your project (Supporting Files ...
Read more >Loading resources from your app bundle - Hacking with Swift
When we use Image views, SwiftUI knows to look in your app's asset catalog to find the artwork, and it even automatically adjusts...
Read more >The Android App Bundle format
An Android App Bundle is a file (with the .aab file extension) that you upload to Google Play. App bundles are signed binaries...
Read more >Displaying an image in Xamarin.iOS - Microsoft Learn
In addition to using images to support an app, iOS also uses images with app control types such as tab bars, toolbars, navigation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kurnal really? For what solution are you talking about exactly? This issue was NOT closed as resolved, it was closed as not a RN issue and the discussion is still going at the Fresco repo “Low image quality using <Image/> component on RN > = 0.57 (Fresco >= 1.10.0)”.
If you have a working and tested workaround using FastImage you can post it for the record here https://github.com/facebook/fresco/issues/2397, but FYI this issue is about Fresco lib on Android; it’s partly tracked and although workarounds are welcome, it mainly seeks for a core fix.
@clytras so does FastImage use Fresco and have the same issue? I’m getting blurry images on zoom using FastImage