Skip to content

Commit

Permalink
more ios
Browse files Browse the repository at this point in the history
  • Loading branch information
Erfan Shekarchi committed Mar 29, 2024
1 parent 9ced3f5 commit d5da3bc
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,39 @@ const App = () => {
color={inprogress ? 'green' : 'blue'}
/>
</View>
<View style={styles.section}>
<Button
title={inprogress ? 'Getting...' : 'Get Folder Size'}
onPress={async () => {
try {
if (initComplete) {
fula.checkConnection().then((r: any) => {
console.log('connection check');
console.log(r);
if (r) {
console.log(
'initialization is completed. send Foldersize command'
);
fxblox
.getFolderSize('/uniondrive/chain')
.then((res: any) => {
console.log('Foldersize received');
console.log(res);
})
.catch((e: any) => {
console.log('Foldersize failed');
console.log(e);
});
}
});
} else {
console.log('wait for init to complete');
}
} catch (e) {}
}}
color={inprogress ? 'green' : 'blue'}
/>
</View>
<View style={styles.section}>
<Button
title={inprogress ? 'Getting...' : 'Get Node Logs'}
Expand Down

0 comments on commit d5da3bc

Please sign in to comment.