Files
jrshikoku/components/atom/TextBox.tsx
harukin-expo-dev-env e8a2547ca4 tsx化
2025-12-05 10:43:57 +00:00

24 lines
558 B
TypeScript

import { TouchableOpacity, View } from "react-native";
export const TextBox = (props) => {
const { backgroundColor, flex, onPressButton, children } = props;
return (
<TouchableOpacity
style={{
flex: flex,
backgroundColor: backgroundColor,
padding: 5,
minHeight: 70,
alignItems: "center",
alignContent: "center",
margin: 2,
}}
onPress={onPressButton}
>
<View style={{ flex: 1 }} />
{children}
<View style={{ flex: 1 }} />
</TouchableOpacity>
);
};