18 lines
587 B
TypeScript
18 lines
587 B
TypeScript
import { ColorsStatus } from "@/constants/ColorsStatus";
|
|
import Styles from "@/constants/Styles";
|
|
import { TouchableOpacity } from "react-native";
|
|
import Text from './Text';
|
|
|
|
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>
|
|
);
|
|
} |