Skip to content

Commit

Permalink
Ts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Oct 4, 2024
1 parent 796a2fe commit 3481368
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {createLargeDB, queryLargeDB} from './Database';
import RNRestart from 'react-native-restart';

export default function App() {
const [isLoading, setIsLoading] = useState(false);
const [times, setTimes] = useState<number[]>([]);
const [accessingTimes, setAccessingTimes] = useState<number[]>([]);
const [prepareTimes, setPrepareTimes] = useState<number[]>([]);
Expand Down Expand Up @@ -89,14 +88,11 @@ export default function App() {
};

const createLargeDb = async () => {
setIsLoading(true);
await createLargeDB();
setIsLoading(false);
};

const queryLargeDb = async () => {
try {
setIsLoading(true);
const times = await queryLargeDB();
setTimes(times.loadFromDb);
setAccessingTimes(times.access);
Expand All @@ -106,7 +102,6 @@ export default function App() {
} catch (e) {
console.error(e);
} finally {
setIsLoading(false);
}
};

Expand Down

0 comments on commit 3481368

Please sign in to comment.