update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user