Fix Task: #64
This commit is contained in:
@@ -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,
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user