From 7ab62a2cb14d4c397f0ab7eb39126666c6d5e211 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Fri, 8 Sep 2023 00:57:15 -0400 Subject: [PATCH] Update App.tsx --- example/src/App.tsx | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index a4cc337..6eb811c 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -21,7 +21,7 @@ const App = () => { var RNFS = require('react-native-fs'); const readFile = () => { RNFS.readDir(RNFS.DocumentDirectoryPath) - .then((result: { path: any; }[]) => { + .then((result: { path: any }[]) => { console.log('GOT RESULT', result); return Promise.all([RNFS.stat(result[0].path), result[0].path]); }) @@ -34,7 +34,7 @@ const App = () => { .then((contents: any) => { console.log(contents); }) - .catch((err: { message: any; code: any; }) => { + .catch((err: { message: any; code: any }) => { console.log(err.message, err.code); }); }; @@ -109,13 +109,13 @@ const App = () => { try { await fula.shutdown(); let clientinit = await fula.newClient( - privateKey.toString() - , '' - , bloxAddr - , bloxAddr? '' : 'noop' - , true - ,true - , true + privateKey.toString(), + '', + bloxAddr, + bloxAddr ? '' : 'noop', + true, + true, + true ); if (clientinit) { console.log('newClient complete'); @@ -164,15 +164,14 @@ const App = () => { />