Deskripsi:
try component: Date input
This commit is contained in:
2025-07-17 17:21:31 +08:00
parent e68d366d49
commit eaf0ebfb0a
8 changed files with 466 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ interface TextCustomProps {
bold?: boolean;
semiBold?: boolean;
size?: "default" | "large" | "small";
color?: "default" | "yellow" | "red" | "gray" | "green";
color?: "default" | "yellow" | "red" | "gray" | "green" | "black"
align?: TextAlign; // Prop untuk alignment
truncate?: boolean | number;
onPress?: () => void;
@@ -58,6 +58,7 @@ const TextCustom: React.FC<TextCustomProps> = ({
else if (color === "red") selectedStyles.push(styles.red);
else if (color === "gray") selectedStyles.push(styles.gray);
else if (color === "green") selectedStyles.push(styles.green);
else if (color === "black") selectedStyles.push(styles.black);
// Alignment
if (align) {
@@ -130,4 +131,7 @@ export const styles = StyleSheet.create({
green: {
color: MainColor.green,
},
black: {
color: MainColor.black,
},
});