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