Files
mobile-darmasaba/components/buttonForm.tsx
amaliadwiy 8c63c08bc3 upd: redesign
Deskripsi:
- login dan konfirmasi kode otp
- firebase code env

No Issues
2026-02-14 15:43:38 +08:00

19 lines
690 B
TypeScript

import Styles from "@/constants/Styles";
import { useTheme } from "@/providers/ThemeProvider";
import { TouchableOpacity } from "react-native";
import Text from './Text';
type Props = {
text: string;
onPress: () => void;
disabled?: boolean
};
export function ButtonForm({ text, onPress, disabled }: Props) {
const { colors } = useTheme();
return (
<TouchableOpacity style={[Styles.btnRound, Styles.round05, Styles.mt30, { backgroundColor: colors.primary }, disabled && { backgroundColor: colors.tabIconDefault }]} onPress={onPress} disabled={disabled}>
<Text style={[Styles.textDefaultSemiBold, Styles.cWhite]}>{text}</Text>
</TouchableOpacity>
);
}