From 1b70f2be9476b26e7e94bac7004f26cb4741dd9a Mon Sep 17 00:00:00 2001 From: Gennady Vasilev Date: Tue, 14 Feb 2023 14:43:11 +0300 Subject: [PATCH] fix & upgrade example code --- README.md | 27 +++++++++++++++++---------- package.json | 2 +- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 3808c7d..c6a5823 100644 --- a/README.md +++ b/README.md @@ -64,21 +64,28 @@ export default function App() { managers={[ { name: 'images', - // 1 month (in seconds) - entryExpiresIn: 30 * 24 * 60 * 60 + entryExpiresIn: 30 * 24 * 60 * 60 // 1 month (in seconds) }, - // without expire prop (-1 default) - { name: 'videos' }, - // short naming (-1 default) - 'other' + { name: 'videos' }, // without expire prop (-1 default) + 'other' // short naming (-1 default) ]} - // headers={{ - // Authorization: `${token_type} ${access_token}` - // }} onReady={() => setReady(true)} > {ready && ( - + console.log(`${v}%`)} + + // ...and many others options + /> )} ) diff --git a/package.json b/package.json index 6dff0c7..30bbb67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "expo-cache-manager", - "version": "0.2.2", + "version": "0.2.3", "description": "Library for handling data caching for React Native with expo-cache-manager", "main": "lib/commonjs/index", "module": "lib/module/index",