This commit is contained in:
Philip Cesar Garay
2025-08-07 21:02:22 +08:00
parent 40e877774b
commit 5a4d36e1bc
34 changed files with 902 additions and 137 deletions
+6 -1
View File
@@ -1,8 +1,9 @@
import { View, Text, Pressable } from "react-native";
import { View, Text, Pressable, Image } from "react-native";
import React from "react";
import { LinearGradient } from "./LinearGradient/LinearGradient";
import { Palette, Style } from "../styles";
import { FONT_FAMILY } from "../styles/Fonts";
import { size } from "../styles/Style";
const GradientButton = ({
title = "",
@@ -10,6 +11,7 @@ const GradientButton = ({
onPress,
props,
containerStyle = {},
icon,
}) => {
return (
<Pressable onPress={onPress} style={{ ...containerStyle }}>
@@ -17,13 +19,16 @@ const GradientButton = ({
colors={colors}
style={{
...Style.containerCenter,
...Style.containerRow,
height: 50,
borderRadius: 14,
gap: 10,
}}
start={{ x: 0, y: 0 }}
end={{ x: 1, y: 0 }}
{...props}
>
{icon && <Image source={icon} style={size({ size: 16 })} />}
<Text
style={{
fontSize: 15,