This commit is contained in:
Philip Cesar Garay
2025-09-09 17:17:11 +08:00
parent a3dc4f89b7
commit 69977aba2b
5 changed files with 84 additions and 17 deletions
+10 -1
View File
@@ -3,13 +3,17 @@ import React from "react";
import BorderGradient from "../BorderGradient/BorderGradient";
import { BlurView } from "expo-blur";
import { responsiveHeight } from "react-native-responsive-dimensions";
import { useKeyboard } from "@react-native-community/hooks";
const ItemContainer = ({
height = responsiveHeight(40),
children,
gradientProps,
style,
disableKeyboardHeight = false,
}) => {
const { keyboardShown } = useKeyboard();
return (
<BorderGradient
gradientProps={{
@@ -20,7 +24,12 @@ const ItemContainer = ({
}}
style={{
...styles.borderGradientStyle,
height,
height: !disableKeyboardHeight
? keyboardShown
? responsiveHeight(30)
: height
: height,
...style,
}}
>