React-native-fast-image: assets-library images fail to load on IOS

Created on 16 Sep 2017  路  6Comments  路  Source: DylanVann/react-native-fast-image

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

All 6 comments

its because you need CameraRoll in your project.

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

link this and it will work

Same problem

I wonder if there's a list of these schemes somewhere. This is fixed in v4.0.11. https://github.com/DylanVann/react-native-fast-image/releases/tag/v4.0.11

Having this problem with 5.0.11

Seems like still not fixed with 5.1.1

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

Was this page helpful?
0 / 5 - 0 ratings