react-native-cache-database
v0.0.3
Published
### Getting Start ``` yarn add react-native-cache-database ```
Downloads
6
Readme
use MongoDb to Cache in RN like localStorage/IndexDB api in Web 👋
Getting Start
yarn add react-native-cache-database
Usage
Usa Img Cache
Cache img as base64 to Load Image fast 🚀 Tests: Cache Locally, Load all cached resources in an instant
For Single
const mergedSourceUri = getCacheBySrc(source?.url);
...
<Image source={uri:cacheSourceUri} />
For Lists
const cacheSourceUri = getCacheBySrc(source?.url);
...
render=(item =>
<Image source={uri:cacheSourceUri} />
)