Correcting error when lauching on Android devices due to fontSize value having "em" units

master
Arthur VALIN 2 years ago
parent 6af001cbe2
commit 48e753e303

3
.idea/.gitignore vendored

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/LEARNIHON.iml" filepath="$PROJECT_DIR$/.idea/LEARNIHON.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

Binary file not shown.

@ -1,11 +1,12 @@
{
"ExpandedNodes": [
"",
"\\assets",
"\\components",
"\\model",
"\\navigation",
"\\pages"
"\\pages",
"\\redux",
"\\storage"
],
"SelectedNode": "\\pages\\List.tsx",
"PreviewInSolutionExplorer": false
}

Binary file not shown.

@ -46,7 +46,7 @@ const style = StyleSheet.create({
text: {
color: "white",
fontWeight: "bold",
fontSize: "18em",
fontSize: 18,
padding: 5
},
@ -68,7 +68,7 @@ const styleSELECTED = StyleSheet.create({
text: {
color: "white",
fontWeight: "bold",
fontSize: "18em",
fontSize: 18,
padding: 5
},

@ -9,8 +9,6 @@ interface kanjiListSeachPanelProps {
const GradeChipList = (props: kanjiListSeachPanelProps) => {
const navigator = useNavigation();
return (
<View style={panelStyle.container}>
<FlatList

@ -17,7 +17,7 @@ const KanjiCard = () => {
text: {
color: answerTextColor,
fontWeight: "bold",
fontSize: "20em"
fontSize: 20
}
})
const [loadingSvg, setLoadingSvg] = useState(false);

@ -28,7 +28,7 @@ const KanjiListCell = React.memo((props: kanjiListCellProps) => {
}
});
const memoizedValues = useMemo(async () => {
useMemo(async () => {
const guess = await retrieveGuess(props.kanji.character);
const ratio = guess ? await calcCorrectGuessesRatio(guess) : -1;
setRatio(ratio);
@ -63,7 +63,7 @@ const cellStyle_light = StyleSheet.create({
kanji: {
fontWeight: "bold",
color: "black",
fontSize: "20em",
fontSize: 20,
width: "10%"
}
})
@ -84,7 +84,7 @@ const cellStyle_dark = StyleSheet.create({
kanji: {
fontWeight: "bold",
color: "white",
fontSize: "20em",
fontSize: 20,
width: "10%",
},
})

@ -1,6 +1,4 @@
import React from 'react';
import { StyleSheet, useColorScheme, View } from 'react-native';
import { learnihonColors } from '../assets/colors';
import KanjiList from '../components/KanjiList';
import LearnihonPage from './LearnihonPage';

@ -1,6 +1,4 @@
import React from 'react';
import { StyleSheet, useColorScheme, View } from 'react-native';
import { learnihonColors } from '../assets/colors';
import DrawingCanva from '../components/DrawingCanva';
import KanjiPlaygroundList from '../components/KanjiPlaygroundList';
import LearnihonPage from './LearnihonPage';

@ -13,8 +13,10 @@ const store = configureStore(
reducer,
middleware: getDefaultMiddleware({
serializableCheck: {
ignoredActions: [SET_KANJIS, SET_PLAYGROUND_LIST, SET_SELECTED_KANJI]
}
ignoredActions: [SET_KANJIS, SET_PLAYGROUND_LIST, SET_SELECTED_KANJI],
ignoredActionPaths: ['kanjiReducer'],
ignoredPaths: ['kanjiReducer']
}
})
},);

Loading…
Cancel
Save