import React , { memo , forwardRef } from 'react' ; import { Input , IInputProps } from '../Input' ; import { usePropsResolution } from '../../../hooks/useThemeProps' ; import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps' ; export interface ITextAreaProps extends IInputProps { /**
     * Maps to react-native TextInput's numberOfLines.
     */ totalLines ? : number ; } const TextArea = ( { wrapperRef , ... props } , ref ) => { const { totalLines , ... newProps } = usePropsResolution ( 'TextArea' , props ) ; if ( useHasResponsiveProps ( props ) ) { return null ; } return ( < Input { ... newProps } numberOfLines = { totalLines } wrapperRef = { wrapperRef } ref = { ref } / > ) ; } ; export default memo ( forwardRef ( TextArea ) ) ;