tambahan
This commit is contained in:
15
components/buttonForm.tsx
Normal file
15
components/buttonForm.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user