import type { ViewProps } from 'react-native'; import type { StyledProps } from '../../../theme/types'; import type { SafeAreaProps, PlatformProps, ResponsiveValue, ColorType, CustomProps, } from '../../types'; import type { ITextProps } from './../Text/types'; export interface ILinearGradientProps { linearGradient?: { colors: Array; start?: Array; end?: Array; locations?: Array; }; } export interface InterfaceBoxProps extends ViewProps, SafeAreaProps, PlatformProps : T>, Omit { /** * Renders components as Box children. Accepts a JSX.Element or an array of JSX.Element. */ children?: JSX.Element | JSX.Element[] | string | any; // /** // * Applies box shadow and accepts a number from 0 to 9 // * @default 0 // */ // shadow?: number; /** * For providing props to Text inside Box */ _text?: Partial; bg?: ResponsiveValue; background?: ResponsiveValue< ColorType | (string & {}) | ILinearGradientProps >; bgColor?: ResponsiveValue; backgroundColor?: ResponsiveValue< ColorType | (string & {}) | ILinearGradientProps >; // gap?: ResponsiveValue; } export type IBoxProps = InterfaceBoxProps & CustomProps<'Box'>;