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.

assets-library images fail to load on IOS

See original GitHub issue
<FastImage
  style={{ flex: 1 }}
  source={{ uri: 'assets-library://asset/asset.JPG?id=2E02A766-5...restOfThePath3E7B&ext=JPG' }}
  resizeMode={FastImage.resizeMode.contain}
/>

When the image source is an asset file, obtained via Camera Roll the image fails to load. The same works well with the react native Image tag.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
samhvcommented, Dec 12, 2017

its because you need CameraRoll in your project.

https://facebook.github.io/react-native/docs/cameraroll.html

link this and it will work

2reactions
bohdan145commented, Aug 10, 2019

Same problem on 6.1.1 Had to use Image from react-native

Read more comments on GitHub >

github_iconTop Results From Across the Web

assets-library images fail to load on IOS · Issue #300 - GitHub
after i update to 5.0.10, assets-library images fail to load on IOS. any idea?
Read more >
Xcode Build project Error after import AssetsLibrary
framework into the project i got errors when i tried to build project. enter image description here. Anyideas how to fix this? Thanks!...
Read more >
ALAssetsLibrary | Apple Developer Documentation
An instance of ALAssetsLibrary provides access to the videos and photos that are under the control of the Photos application. iOS 4–9 Deprecated...
Read more >
The Photos Framework - objc.io
With iOS 8, Apple has given us PhotoKit, a modern framework that's more ... Then we'll discuss loading the assets' image data: the...
Read more >
Error when accessing some photo albums on iOS - Felgo
I am using the NativeUtils image picker to get access to the device pictures. Most of the time it works fine, but I...
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