candlefinance / faster-image

Fast image loading for React Native backed by performant native libraries.
https://candle.fi/discord
MIT License
479 stars 21 forks source link

Add headers to image request #22

Closed micahlt closed 2 months ago

micahlt commented 2 months ago

I have a use case where I'm using authorization headers, and the React Native Image component allows me to pass those directly into the source of an Image. It would be great if the same thing would work with this library!

Theoretical example:

<FasterImageView source={{
  uri: src,
  headers: {
    Authorization: `Bearer ${token}`,
  },
 }} />
gtokman commented 2 months ago

@micahlt live on latest version!

micahlt commented 2 months ago

Wonderful! Thanks so much!