web layout

This commit is contained in:
2025-10-01 13:21:46 +02:00
parent 08e02a752a
commit 7ee47a1943
5 changed files with 89 additions and 54 deletions
+8 -3
View File
@@ -1,9 +1,9 @@
import { View, Text, Pressable, Image, FlatList } from "react-native";
import React from "react";
import { LinearGradient } from "./LinearGradient/LinearGradient";
import { Image, Pressable, Text } from "react-native";
import { Palette, Style } from "../styles";
import { FONT_FAMILY } from "../styles/Fonts";
import { size } from "../styles/Style";
import { LinearGradient } from "./LinearGradient/LinearGradient";
const GradientButton = ({
title = "",
@@ -13,12 +13,17 @@ const GradientButton = ({
containerStyle = {},
icon,
disabled = false,
maxWidth = null,
}) => {
return (
<Pressable
onPress={onPress}
disabled={disabled}
style={{ ...containerStyle, opacity: disabled ? 0.6 : 1 }}
style={{
...containerStyle,
opacity: disabled ? 0.6 : 1,
maxWidth: maxWidth ? maxWidth : null,
}}
>
<LinearGradient
colors={colors}