0.0.3 • Published 5 months ago

react-native-cache-database v0.0.3

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
5 months ago

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} />
  )
0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago