From 54abdaf07145b0e2df6dbbb18458a7b4e71a81fe Mon Sep 17 00:00:00 2001 From: Alpha Date: Mon, 15 Apr 2024 22:42:25 -0400 Subject: [PATCH] chore: add chunk read to example app --- example/src/App.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/example/src/App.tsx b/example/src/App.tsx index 4bb4237..403e1d8 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -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) => {