Text input
Usage
import {FormController} from '@rn-punikit/base'
import {useForm} from 'react-hook-form'
export default () => {
const {control} = useForm({
defaultValues: {
email: '',
},
})
return (
<FormController
type={'text'}
control={control}
fieldId={'name'}
fieldConfig={{
label: 'Nombre',
}}
/>
)
}
Props
FormTextInputProps
Tipo | description | Default | Tipo |
---|---|---|---|
label | Label del campo | string | |
editable | Es editable | true | boolean |
secureText | Ocultar valor del campo | false | boolean |
textAlign | Alineación del texto | left o right o center | |
keyBoardType | Tipo de teclado | default | KeyboardType |
textContentType | Contenido del campo | none | TextContentTypeType |
description | Descripción | string | |
multiline | Muestra el campo en varias lineas | false | boolean |
autoComplete | Autocompletar campo | TextInputAutocomplete |