react-native-expo-image-cache icon indicating copy to clipboard operation
react-native-expo-image-cache copied to clipboard

Support HTTP headers

Open ghost opened this issue 6 years ago • 6 comments

Adds support for HTTP headers when fetching an image via the headers prop, as you would be able to do with the headers option for the source prop for RN Image.

ghost avatar Jul 13 '18 21:07 ghost

@VersaLife Thank you so much for contributing this. Should the http headers by passed via the header property of source? This would mean that now the source would be source not URI, which would make it a bit more symetric with <Image> and then it would support this change, do you agree?

wcandillon avatar Jul 29 '18 10:07 wcandillon

That would be better yeah, I agree. I'll have a go at making that change

ghost avatar Jul 29 '18 15:07 ghost

ok, let me know, I could take a swing at it too.

On Sun 29 Jul 2018 at 17:33, VersaLife [email protected] wrote:

That would be better yeah, I agree. I'll have a go at making that change

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/wcandillon/react-native-expo-image-cache/pull/79#issuecomment-408685584, or mute the thread https://github.com/notifications/unsubscribe-auth/AASr1gDmFc62ZfQDIO_6uAa8wz6_rZY4ks5uLdWugaJpZM4VPjIW .

wcandillon avatar Jul 29 '18 15:07 wcandillon

That's done - I've just changed the interface of the component and left the CacheManager to deal with the uri and headers only to keep things simple.

ghost avatar Jul 29 '18 17:07 ghost

@wcandillon can you resolve the conflict and merge this pr, I would like to see this change come through :)

AlessandroAries avatar Nov 19 '18 15:11 AlessandroAries

@VersaLife Sorry for taking so much time on this. Could you rebase your PR with the latest version of the module?

wcandillon avatar Jun 16 '19 15:06 wcandillon