import { PADDING_VERTICAL_INPUT } from '@/core/constants'; import { useTailwind } from '@/hooks'; import { ForwardedRef, forwardRef, ReactNode } from 'react'; import { TextInput as RNTextInput, TextInputProps as RNTextInputProps, View } from 'react-native'; import { Style } from 'twrnc/dist/esm/types'; import TextInput from './TextInput'; export interface IconTextInputProps extends RNTextInputProps { IconLeftComponent?: ReactNode; IconRightComponent?: ReactNode; containerStyle?: Style; style?: Style; } function IconTextInput( { IconLeftComponent, IconRightComponent, containerStyle, style, ...props }: IconTextInputProps, ref: ForwardedRef, ) { const tw = useTailwind(); return ( {IconLeftComponent} {IconRightComponent} ); } export default forwardRef(IconTextInput);