React-native-fast-image: Android does not load image from albumart

Created on 19 Jan 2018  路  3Comments  路  Source: DylanVann/react-native-fast-image

Great library. I just have one problem i cant use the library to show album art from android media store.
A uri like this

content://media/external/audio/albumart/58

I tried your example using this uri

import FastImage from 'react-native-fast-image'

const YourImage = () =>
  <FastImage
    style={styles.image}
    source={{
      uri: 'content://media/external/audio/albumart/58',
      headers:{ Authorization: 'someAuthToken' },
      priority: FastImage.priority.normal,
    }}
    resizeMode={FastImage.resizeMode.contain}
  />

An solution?

Most helpful comment

Content urls are now handled in the latest version.

You also aren't required to set a priority or to set headers:

  <FastImage
    style={styles.image}
    source={{ uri: 'content://media/external/audio/albumart/58' }}
  />

All 3 comments

Content urls are now handled in the latest version.

You also aren't required to set a priority or to set headers:

  <FastImage
    style={styles.image}
    source={{ uri: 'content://media/external/audio/albumart/58' }}
  />

@DylanVann ^4.0.6?

@makskolesnikov Nope, v4.0.8. I'll update the changelogs tonight.

Was this page helpful?
0 / 5 - 0 ratings