kfiroo / react-native-cached-image

CachedImage component for react-native
MIT License
940 stars 468 forks source link

What is `resolveHeaders` property? #58

Open iegik opened 7 years ago

kfiroo commented 7 years ago

@iegik Hey, this feature was introduced here https://github.com/kfiroo/react-native-cached-image/pull/16

iegik commented 7 years ago

Loading images is also HTTP request, so auth headers can be passed with image uri in source (source.headers) attribute. Now we need something onError, onCache (onBeforeLoad) and onLoad to handle fetch response.