15 lines
426 B
TypeScript
15 lines
426 B
TypeScript
import Styles from "@/constants/Styles";
|
|
import { Text, TouchableOpacity } from "react-native";
|
|
|
|
type Props = {
|
|
text: string;
|
|
onPress: () => void;
|
|
};
|
|
|
|
export function ButtonForm({ text, onPress }: Props) {
|
|
return (
|
|
<TouchableOpacity style={[Styles.btnRound, { marginTop: 30 }]} onPress={onPress}>
|
|
<Text style={[Styles.textDefaultSemiBold, Styles.cWhite]}>{text}</Text>
|
|
</TouchableOpacity>
|
|
);
|
|
} |