Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
WhidRubeld committed Feb 14, 2023
2 parents a203e27 + 1b70f2b commit b0910f6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
27 changes: 17 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
<CachingImage uri={'remote-file-uri'} manager='images' />
<CachingImage
uri={'remote-file-uri'}
manager='images'
style={{ width: '100%', height: 300 }}
// headers={{
// Authorization: `${token_type} ${access_token}`
// }}
// resizeMode="cover" // default - cover
// toggleButtons // enable resume/pause buttons, default - true
// autoLoad // default - true
// onProgress={(v) => console.log(`${v}%`)}

// ...and many others options
/>
)}
</CacheManagerProvider>
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit b0910f6

Please sign in to comment.