diff --git a/.vs/LEARNIHON/FileContentIndex/5d158740-230b-4887-8e25-cef2fa3377bf.vsidx b/.vs/LEARNIHON/FileContentIndex/5d158740-230b-4887-8e25-cef2fa3377bf.vsidx deleted file mode 100644 index 4379492..0000000 Binary files a/.vs/LEARNIHON/FileContentIndex/5d158740-230b-4887-8e25-cef2fa3377bf.vsidx and /dev/null differ diff --git a/.vs/LEARNIHON/FileContentIndex/8ec4f1ae-5fb5-494b-973a-01c56c64abba.vsidx b/.vs/LEARNIHON/FileContentIndex/8ec4f1ae-5fb5-494b-973a-01c56c64abba.vsidx deleted file mode 100644 index d762387..0000000 Binary files a/.vs/LEARNIHON/FileContentIndex/8ec4f1ae-5fb5-494b-973a-01c56c64abba.vsidx and /dev/null differ diff --git a/.vs/LEARNIHON/FileContentIndex/af88f8d0-4328-4d83-b5cc-775f6a9f9471.vsidx b/.vs/LEARNIHON/FileContentIndex/af88f8d0-4328-4d83-b5cc-775f6a9f9471.vsidx deleted file mode 100644 index d326ac9..0000000 Binary files a/.vs/LEARNIHON/FileContentIndex/af88f8d0-4328-4d83-b5cc-775f6a9f9471.vsidx and /dev/null differ diff --git a/.vs/LEARNIHON/v17/.wsuo b/.vs/LEARNIHON/v17/.wsuo index 4052777..5dc3491 100644 Binary files a/.vs/LEARNIHON/v17/.wsuo and b/.vs/LEARNIHON/v17/.wsuo differ diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json index 9e29834..ec5e705 100644 --- a/.vs/VSWorkspaceState.json +++ b/.vs/VSWorkspaceState.json @@ -2,15 +2,15 @@ "ExpandedNodes": [ "", "\\src", - "\\src\\assets", - "\\src\\components", "\\src\\navigation", + "\\src\\pages", "\\src\\redux", "\\src\\redux\\actions", "\\src\\redux\\reducers", "\\src\\redux\\thunks", - "\\src\\storage" + "\\src\\storage", + "\\src\\test" ], - "SelectedNode": "\\src\\navigation\\TabBar.tsx", + "SelectedNode": "\\src\\components\\KanjiListCell.tsx", "PreviewInSolutionExplorer": false } \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index f495137..bd903f4 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/src/.idea/vcs.xml b/src/.idea/vcs.xml index 35eb1dd..62bd7a0 100644 --- a/src/.idea/vcs.xml +++ b/src/.idea/vcs.xml @@ -2,5 +2,6 @@ + \ No newline at end of file diff --git a/src/components/DrawingCanva.tsx b/src/components/DrawingCanva.tsx deleted file mode 100644 index 13b968c..0000000 --- a/src/components/DrawingCanva.tsx +++ /dev/null @@ -1,163 +0,0 @@ -import Slider from '@react-native-community/slider'; -import React, { useEffect, useRef, useState } from 'react'; -import { Button, StyleSheet, TouchableOpacity, useColorScheme, View } from 'react-native'; -import { SvgXml } from 'react-native-svg'; -import { SketchCanvas, SketchCanvasRef } from 'rn-perfect-sketch-canvas'; - -import { useSelector } from 'react-redux'; -import { Kanji } from '../model/kanji'; -import { KanjiMapper } from '../model/kanjiMapper'; - -import { Eye, EyeOff } from "react-native-feather"; -import { learnihonColors } from '../assets/colors'; - -const DrawingCanva = () => { - - const style = useColorScheme() == 'light' ? style_light : style_dark; - - const canvasRef = useRef(null); - const [strokeWidth, setStroke] = useState(5); - const [isCanvasReady, setIsCanvasReady] = useState(false); - const [imgXml, setImgXml] = useState(''); - const selectedKanji = KanjiMapper.SerializedObjectToKanji(useSelector(state => state.kanjiReducer.selectedKanji)); - - const [isVisible, setIsVisible] = useState(true); - - useEffect(() => { - fetchXml(); - if (canvasRef.current) { - setIsCanvasReady(true); - } - }, [canvasRef.current, selectedKanji]); - - const fetchXml = async () => { - if (selectedKanji instanceof Kanji) { - const xml = await (await fetch(selectedKanji.image)).text(); - setImgXml(xml); - } - } - - return ( - - - setIsVisible(!isVisible)}> - {isVisible ? () : - ()} - - - {selectedKanji && isVisible && ( - )} - - - setStroke(val)} - minimumValue={5} - maximumValue={15} - minimumTrackTintColor={learnihonColors.main} - /> - {isCanvasReady && ( -