diff --git a/App.js b/App.js index ede92ca..78e4d44 100644 --- a/App.js +++ b/App.js @@ -35,7 +35,7 @@ if (Platform.OS === "android") { } } -//TODO: Move Appereance to AppDB +//TODO: Move Appearance to AppDB let MyTheme = generateTheme(false); // Keep the splash screen visible while we fetch resources diff --git a/components/DownloadList.js b/components/DownloadList.js index c9552ce..14b41e0 100644 --- a/components/DownloadList.js +++ b/components/DownloadList.js @@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef } from "react"; import { StyleSheet, View, Text, TouchableOpacity, Image } from "react-native"; import { AnimatedCircularProgress } from "react-native-circular-progress"; import CheckIcon from "../assets/icons/Check"; -import DonwloadIcon from "../assets/icons/Download"; +import DownloadIcon from "../assets/icons/Download"; import PauseIcon from "../assets/icons/Pause"; import { useTheme } from "@react-navigation/native"; @@ -149,7 +149,7 @@ function downloadView(downloading, progress, colors) { ); } else { - return ; + return ; } } @@ -198,7 +198,7 @@ const styles = StyleSheet.create({ }); // ----------------- -// Manage Donwload +// Manage Download // ----------------- async function downloadFile(uri, fileName, onFinish, onProgress) { let baseDir = FileSystem.documentDirectory; diff --git a/lib/dictDB.js b/lib/dictDB.js index 9bb86ee..341ed81 100644 --- a/lib/dictDB.js +++ b/lib/dictDB.js @@ -19,7 +19,7 @@ export class DatabaseInit { await FileSystem.makeDirectoryAsync(baseDir); } - // Delete previus version of database + // Delete previous version of database if (await FileSystem.getInfoAsync(baseDir + "/dict_en.db").exists) { await FileSystem.deleteAsync(baseDir + "/dict_en.db"); } diff --git a/pages/Editor.js b/pages/Editor.js index 69bbf0c..2e4f8f2 100644 --- a/pages/Editor.js +++ b/pages/Editor.js @@ -246,7 +246,7 @@ export default function Editor({ updateGlobalState(); }; - const onNoteSelectionChage = (event) => { + const onNoteSelectionChange = (event) => { let sel = event.nativeEvent.selection; setCursorPos(sel); @@ -354,7 +354,7 @@ export default function Editor({ spellCheck={false} textAlignVertical="top" onChangeText={onChangeNoteText} - onSelectionChange={onNoteSelectionChage} + onSelectionChange={onNoteSelectionChange} onFocus={onFocusNote} > {noteContent}