- chore: updated dev and example packages (b534f4f).
- chore: removed husky, added lefthook (f6d0745).
- chore: prettified, linted and a-b sorted some props (708340d).
- chore: renamed animated style variables for better readability (3b7486b).
- chore: updated CHANGELOG.md (2c019c1).
- chore: added 408, 500 & 503 error codes in the retry function (e823000).
- chore: use root on lefthook for example run (66e04eb).
- chore: use
forEachinstead ofmapin prefetch function (9ab5e91). - chore: yarn prettier now runs first on lefthook example run to avoid eslint issues afterwards (5169b0e).
- docs: added
imageStyleprop and info about supporting local images (23e2a70).
v2.9.0 - 2023-08-10
- chore: updated dev and example packages (eba84f1).
- docs: added supports new Arch in Features (bd859ef).
v2.8.0 - 2023-08-07
- chore: updated dev and example packages (8633bbb).
- chore: import useRef instead of React.useRef (d02ea03).
v2.7.0 - 2023-07-31
- chore: updated CHANGELOG.md (4b01561).
- fix: allow
0as an animation duration on both source and thumbnail (071941c).
v2.6.0 - 2023-07-31
- chore: updated example packages, react-native@0.72.3 (6ca18a8).
- chore: updated dev packages, react-native@0.72.3 (6a5dd6d).
- chore: eslint fixes (f25cbd5).
v2.5.0 - 2023-06-12
- chore: updated dev end example packages (d2359c1).
v2.4.0 - 2023-05-12
- chore: updated example to react-native@0.71.8 and dev packages (c512549).
- chore: prettified files (3288507).
- chore: added nullish check on sourceAnimationDuration from global config (f75ce87).
- chore: added tintColor prop on source image (8c91921).
- chore: added missing / on bugs.url on package.json (52cd27e).
- chore: added missing comma on package.json (457fcff).
- chore: updated eslint rules (232564d).
-
fix: move reanimated to dev dependencies (4066952).
-
fix: use options for thumbnails & support token refresh
-
Use options for thumbnails as well: Options property are used only for source image. So, if you have any required header or option to get thumbnail images from whatever backend you're using, it'll silently fail.
-
Support refresh on token update Cache Manager is being instanced once and only registering uris and options by source URL. So, if you have the same URL being called from different places across the app, you may face at some point that your images won't load since they have been stored by URL (which is the same) and with the first option that Cache Manager received; so you may already got the idea but to summarize you're not getting your images because the token that Cache Manager is using has expired and it's not being updated. (6c21996).
- docs: update README.md
added buy me a coffee link (2982b22).
- docs: fix typo (bee2b26).
v2.3.0 - 2022-08-09
- feat: Prefetch image and return the base64/blob string (47d537a).
- chore: updated dev and example packages (2f23710).
- chore: updated dev and example packages (6f90b01).
- chore: updated dev and example packages (4257f05).
- chore: updated CHANGELOG.md to include getCustomCacheKey new config (977ddd6).
v2.2.0 - 2022-06-20
- chore: updated dev packages (0e87709).
- chore: updated example packages, added routes.tsx on .eslintignore (859a880).
- chore: linted example and fixed a typo in a comment (f2237a6).
- chore: a-b sorted types.d.ts (3698869).
- docs: added testID prop and new getCustomCacheKey config option (c1dfdf0).
- docs: mark prefetch options as optional on parameters (3db99cf).
v2.1.0 - 2022-05-05
v2.0.1 - 2022-04-05
v2.0.0 - 2022-04-03
- chore: use reanimated 2 instead of react-native Animated (8b92afc).
- chore: remove reanimated from peer deps (d477f57).
- chore: conflicts (472fe71).
- fix: example for reanimated 2 (19b1f81).
- fix: image size in example (a962ffa).
- fix: reanimated bug with types (fa0cbff).
- docs: highlight reanimated warning (42e0c23).
- docs: added Caution for users not using react-native-reanimated version 2.x.x (66b16a7).
v1.6.0 - 2022-04-03
- feat: maxAge in hours to keep the image on cache (375bbc4).
- feat: do not cache the image prop (1ede802).
- chore: updated react-native-file-access, fixes double / of file path on iOS (3a590aa).
- chore: remove .replace on file.path during cache prune unlink (fb274d8).
- fix: Android example now builds correctly & fixed button colors (aa1a3d9).
- docs: fixed a typo (b98a9bf).
v1.5.0 - 2022-04-01
- feat: cacheLimit configuration for cache auto pruning (f81983a).
- chore: updated example to use react-native 0.67.4 (eba5049).
- chore: bumped react-native to 0.67.4 on working dir (74409fa).
- docs: improved cache pruning flow (493ad52).
- docs: better cacheLimit config header (5594b84).
- docs: added an extra step on cache pruning flow (a044978).
- docs: update README
added download per month (5366c33).
v1.4.0 - 2022-03-12
- feat: add onLoad and and onLoadEnd props (85885d8).
- chore: updated example to react-native 0.66.3 (c32f5e7).
- chore: align project with eslint 8.x.x requirements (5bb5b2f).
- chore: updated dev packages (c2e64d0).
- chore: removed test from example, fixed some typings (783fada).
- chore: rename uri to image (0b5efe8).
- docs: added checkboxes on Todo (eda10bd).
- docs: add onLoad and onLoadEnd props (2885ab9).
- docs: added missing @ on image-library link (7b9b252).
v1.3.0 - 2021-10-31
- feat: Add method to check if image is cached or not (84e1464).
- feat: Add method to check if image is cached or not (6072a23).
- chore: rename method to check if image is cached (d767aae).
- chore: change file to image on error message (dcc8928).
- fix: Better error message while checking if file exists (ca6840d).
- docs: add react-native file access version for rn 0.65 (e38bf3b).
- docs: add new method to check if image is cached (3070564).
- docs: typo in docs (197fa77).
- docs: typo in note for rn 0.65 (833ed36).
v1.2.8 - 2021-08-27
- fix: thumbnail image should now show up, was missing
style(8358a6d).
v1.2.7 - 2021-07-16
v1.2.6 - 2021-07-12
- chore: added
useStateIfMountedhook to preventCan't perform a React state update on an unmounted component.warning (833b331).
v1.2.5 - 2021-07-11
- chore: added example with
loadingImageComponent(5396857). - chore: updated npm packages (f63d354).
- chore: updated example npm packages
- prettier add bracket spacing (9a7bb68).
- chore: added native modules linking instructions on README (f20b3cc).
- fix: infinite callback chore: improved loadingImageComponent behavior (5fc9cbd).
- fix: fix
blacklistmodule not found error (aff0b65).
v1.2.4 - 2021-07-06
- fix: example on android (1e50e8b).
v1.2.3 - 2021-06-05
v1.2.2 - 2021-06-05
- chore:
react-native-file-accessnow installs patch version instead of latest minor (2d0c7a7).
v1.2.1 - 2021-05-18
- chore: added
blurRadiusas a prop BREAKING: please addblurRadiusinCacheManagerconfig docs: improved docs badges and addedblurRadiusprop info chore: sorted alphabetically some objects (942a588).
v1.2.0 - 2021-05-15
- feat: remove single cache entry (1796ec1).
- refactor: base dir in camel case (38536ef).
- docs: ipdate docs (8c725d4).
v1.1.2 - 2021-05-11
- chore: removed some peerDependencies
chore: removed @react-native-community/bob and added react-native-builder-bob
fix: fixed useEffect props to only check for props.source instead of full props object, it was causing a loop if there was an error loading the image from cache (d5f85c8).
v1.1.1 - 2021-05-11
- fix: fixed a typo on
onImageLoadanimation prop docs: added new TODO docs: addedreact-native-file-accessdocs link aboutDirs(cce01dc).
v1.1.0 - 2021-05-11
- feat: BREAKING CHANGE: added Global Config docs: updated README.md chore: updated dependencies (b7cb4be).
v1.0.9 - 2021-05-10
- fix: finally fixed
defaultPropstypings fix: fixed a typo onthumbnailSourceurl in example (a87e8b7).
v1.0.8 - 2021-05-10
- fix: fixed
defaultPropstypings (1cd94be).
v1.0.7 - 2021-05-08
- docs: hooks todo and options prop correction (5d9b983).
- docs: fixed preview os headers (7e762f9).
- docs: finally fixed Android demo gif (f070a2a).
v1.0.6 - 2021-05-07
- docs: fix Android demo gif (68a212f).
v1.0.5 - 2021-05-07
- refactor: alphanum sorted some objects and props
docs: sorted props on props table
refactor: removed unused code
refactor: BREAKING CHANGE: renamed
imageAnimationDurationtosourceAnimationDurationprop for convention docs: removed iOS video demo and added GIF docs: added Android demo (e36e5b2).
v1.0.4 - 2021-05-07
- fix: Remove cache key from props (b9e9dc1).
- docs: Update props, Add cache manager methods (6743975).
v1.0.3 - 2021-05-07
- chore: added LICENSE (12e667f).
- refactor: source is now a string instead of object for convenience
refactor: removed useNativeDriver prop, now it's always
truerefactor: types cleanup (149426f). - chore: version bump (bfcface).
- docs: README fixes (53d272e).