Skip to content

Commit d5da3bc

Browse files
author
Erfan Shekarchi
committed
more ios
1 parent 9ced3f5 commit d5da3bc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

example/src/App.tsx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,39 @@ const App = () => {
714714
color={inprogress ? 'green' : 'blue'}
715715
/>
716716
</View>
717+
<View style={styles.section}>
718+
<Button
719+
title={inprogress ? 'Getting...' : 'Get Folder Size'}
720+
onPress={async () => {
721+
try {
722+
if (initComplete) {
723+
fula.checkConnection().then((r: any) => {
724+
console.log('connection check');
725+
console.log(r);
726+
if (r) {
727+
console.log(
728+
'initialization is completed. send Foldersize command'
729+
);
730+
fxblox
731+
.getFolderSize('/uniondrive/chain')
732+
.then((res: any) => {
733+
console.log('Foldersize received');
734+
console.log(res);
735+
})
736+
.catch((e: any) => {
737+
console.log('Foldersize failed');
738+
console.log(e);
739+
});
740+
}
741+
});
742+
} else {
743+
console.log('wait for init to complete');
744+
}
745+
} catch (e) {}
746+
}}
747+
color={inprogress ? 'green' : 'blue'}
748+
/>
749+
</View>
717750
<View style={styles.section}>
718751
<Button
719752
title={inprogress ? 'Getting...' : 'Get Node Logs'}

0 commit comments

Comments
 (0)