@onvy/react-native-disk-cached-image
v0.4.0
Published
A react native library that caches on disk with custom cache-key
Downloads
108
Readme
@onvy/react-native-disk-cached-image
A react native library that caches on disk with custom cache-key
Installation
npm install @onvy/react-native-disk-cached-image
or
yarn install @onvy/react-native-disk-cached-image
also requires react-native-file-access
and crypto-js
Usage
import { CachedImage } from '@onvy/react-native-disk-cached-image';
// ...
<CachedImage
style={{
width: 200,
height: 200,
}}
source={{ uri: remoteImageUrl }}
defaultSource={require('../assets/placeholder.png')}
/>;
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library