Skip to content

Commit

Permalink
fix: fixed a typo on onImageLoad animation prop
Browse files Browse the repository at this point in the history
docs: added new TODO
docs: added `react-native-file-access` docs link about `Dirs`
  • Loading branch information
efstathiosntonas committed May 11, 2021
1 parent 08f29ab commit cce01dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ Inspired by:

## Installation

yarn:
#### yarn:

```
yarn add @georstat/react-native-image-cache
```

npm:
#### npm:

```
npm i @georstat/react-native-image-cache
Expand All @@ -54,7 +54,7 @@ CacheManager.config = {
};
```

#### Directory constants, choose wisely:
#### Directory constants, choose wisely: ([react-native-file-access docs](https://github.com/alpha0010/react-native-file-access#directory-constants))

- `Dirs.CacheDir`
- `Dirs.DatabaseDir` (Android only)
Expand Down Expand Up @@ -111,6 +111,7 @@ await CacheManager.getCacheSize();

- ~~Convert library to React Hooks~~
- ~~Make `BASE_DIR` configurable~~
- Delete single cache entry

## Authors:

Expand Down
4 changes: 2 additions & 2 deletions src/CachedImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ const CachedImage = (props: IProps & typeof defaultProps) => {
Animated.timing(animatedImage, {
toValue: 1,
duration:
props.thumbnailAnimationDuration ||
CacheManager.config.thumbnailAnimationDuration,
props.sourceAnimationDuration ||
CacheManager.config.sourceAnimationDuration,
useNativeDriver: true,
}).start();
};
Expand Down

0 comments on commit cce01dc

Please sign in to comment.