/**
 * Compared with Input:
 *   Subtraction:
 *     type, password, confirmType, confirmHold
 *   Addition:
 *     ✔ autoHeight(auto-height)
 *     ✘ fixed
 *     ✘ show-confirm-bar
 *     ✔ onLineChange(bindlinechange): No heightRpx info.
 */ import * as React from 'react' ; import { Keyboard } from 'react-native' ; import Input from '../Input' ; import { omit } from '../../utils' ; import { TextareaProps } from './PropsType' ; const _Textarea = ( props ) => { const { autoHeight , onLineChange , autoFocus , maxlength } = props ; return ( < Input _multiline = { true } _autoHeight = { autoHeight } _onLineChange = { onLineChange } autoFocus = { ! ! autoFocus } confirmType = "next" onBlur = { ( ) => Keyboard . dismiss ( ) } { ... omit ( props , [ 'type' , 'password' , 'confirmType' , 'confirmHold' , 'autoHeight' , 'onLineChange' , 'maxlength' ] ) } maxlength = { maxlength } / > ) ; } ; _Textarea . displayName = '_Textarea' ; export default _Textarea ;