You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
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';
|
|
|
|
|
|
const Playground = () => {
|
|
const playgroundStyle = useColorScheme() == 'light' ? playgroundStyle_light : playgroundStyle_dark;
|
|
|
|
return (
|
|
<View style={playgroundStyle.container}>
|
|
<KanjiPlaygroundList/>
|
|
<DrawingCanva backgroundImage="https://media.kanjialive.com/kanji_strokes/otozu(reru)_11.svg"/>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const playgroundStyle_light = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: learnihonColors.light
|
|
|
|
}
|
|
})
|
|
|
|
|
|
const playgroundStyle_dark = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: learnihonColors.dark,
|
|
},
|
|
});
|
|
|
|
|
|
|
|
|
|
export default Playground;
|