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
949 B

import { useNavigation } from "@react-navigation/native";
import React from "react";
import { FlatList, StyleSheet, View } from "react-native";
import GradeChip from './GradeChip';
interface kanjiListSeachPanelProps {
onSelect: (item: string, isSelected: Boolean) => void;
}
const GradeChipList = (props: kanjiListSeachPanelProps) => {
const navigator = useNavigation();
return (
<View style={panelStyle.container}>
<FlatList
data={[1, 2, 3, 4, 5, 6]}
renderItem={(item) => <GradeChip grade={item.item} onSelect={props.onSelect} />}
horizontal={true}
showsHorizontalScrollIndicator={false}/>
</View>
);
};
const panelStyle = StyleSheet.create({
container: {
justifyContent: "center",
alignItems: "center",
height: "10%",
marginTop: 5,
marginBottom: 5
}
})
export default GradeChipList;