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.
37 lines
763 B
37 lines
763 B
import React from 'react';
|
|
import { View, StyleSheet, useColorScheme } from 'react-native';
|
|
import KanjiList from '../components/KanjiList';
|
|
|
|
|
|
const List = () => {
|
|
|
|
const listStyle = useColorScheme() == 'light' ? listStyle_light : listStyle_dark;
|
|
|
|
return (
|
|
<View style={listStyle.container}>
|
|
<KanjiList/>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
|
|
const listStyle_light = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: "#f5f5f5"
|
|
}
|
|
})
|
|
|
|
|
|
const listStyle_dark = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: '#2B2B2B',
|
|
},
|
|
});
|
|
|
|
export default List; |