Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon committed Nov 7, 2018
1 parent 584f486 commit eb0cdf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -49,8 +49,8 @@ Get the local image from a remote URI
import {CacheManager} from "react-native-expo-image-cache";

const {uri} = this.props;
const path = CacheManager.get(uri).getPath();
// if path is undefined, the image download has been
const path = await CacheManager.get(uri).getPath();
// if path is undefined, the image download has failed
```

You can also clear the local cache:
Expand Down

0 comments on commit eb0cdf0

Please sign in to comment.