This commit is contained in:
Philip Cesar Garay
2025-08-12 21:03:49 +08:00
parent 5a521d2f3d
commit 7d8942e125
49 changed files with 1002 additions and 122 deletions
@@ -4,17 +4,24 @@ import BorderGradient from "../BorderGradient/BorderGradient";
import { BlurView } from "expo-blur";
import { responsiveHeight } from "react-native-responsive-dimensions";
const ItemContainer = ({ height = responsiveHeight(40), children }) => {
const ItemContainer = ({
height = responsiveHeight(40),
children,
gradientProps,
style,
}) => {
return (
<BorderGradient
gradientProps={{
colors: ["#FFFFFF00", "#FFFFFF"],
start: { x: 0.3, y: 0 },
end: { x: 1, y: 1 },
...gradientProps,
}}
style={{
...styles.borderGradientStyle,
height,
...style,
}}
>
<View style={styles.blurContainer}>
@@ -5,7 +5,12 @@ import { responsiveHeight } from "react-native-responsive-dimensions";
import { BlurView } from "expo-blur";
import { Style } from "../../styles";
const ItemContainer = ({ height = responsiveHeight(40), children }) => {
const ItemContainer = ({
height = responsiveHeight(40),
children,
gradientProps,
style,
}) => {
const [containerLayout, setContainerLayout] = useState(null);
return (
@@ -20,10 +25,12 @@ const ItemContainer = ({ height = responsiveHeight(40), children }) => {
start: { x: 0.3, y: 0 },
end: { x: 1, y: 1 },
locations: [0, 1],
...gradientProps,
}}
style={{
...styles.borderGradientStyle,
height: containerLayout?.height,
...style,
}}
/>
<View