Skip to content

Commit

Permalink
chore: add chunk read to example app
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha0010 committed Apr 16, 2024
1 parent 7d5cbe3 commit 54abdaf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ export function App() {
return prev.slice();
})
)
.then(() => FileSystem.readFileChunk(Dirs.CacheDir + '/test.txt', 5, 10))
.then((res) =>
setInfo((prev) => {
prev.push({
key: 'readFileChunk(CacheDir/test.txt, 5, 10)',
value: JSON.stringify(res),
});
return prev.slice();
})
)
.then(() => FileSystem.hash(Dirs.CacheDir + '/test.txt', 'MD5'))
.then((res) =>
setInfo((prev) => {
Expand Down

0 comments on commit 54abdaf

Please sign in to comment.