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

import React from 'react';
import { StyleSheet, TextInput, View } from 'react-native';
interface kanjiAnswerFieldProps {
answer: string,
setAnswer: React.Dispatch<React.SetStateAction<string>>
}
const KanjiAnswerField = (props: kanjiAnswerFieldProps) => {
return (
<View>
<TextInput
style={answerFieldStyle.input}
onChangeText={props.setAnswer}
value={props.answer}
placeholder="Answer here"
returnKeyType="send"
/>
</View>
);
};
const answerFieldStyle = StyleSheet.create({
input: {
height: 40,
margin: 12,
borderWidth: 1,
padding: 10,
width: 200,
backgroundColor: "white",
borderRadius:20
},
})
export default KanjiAnswerField;