question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support images from app bundle

See original GitHub issue

The 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:open
  • Created 5 years ago
  • Reactions:9
  • Comments:5

github_iconTop GitHub Comments

1reaction
clytrascommented, Aug 17, 2020

@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.

0reactions
evanjmgcommented, Jun 22, 2021

@clytras so does FastImage use Fresco and have the same issue? I’m getting blurry images on zoom using FastImage

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found