In this article
Not finding the help you need?
The TextField component allows you to type text in your app. The
TextField has attributes such as secure
for
handling password fields, and pipes
for specifying
the text format the control should use.
< TextField hint = " Enter text" color = " orangered" backgroundColor = " lightyellow" />
Name
Type
Description
autocapitalizationType
AutocapitalizationType
Gets or sets the autocapitalization type.
autocorrect
boolean
Enables or disables autocorrection.
keyboardType
KeyboardType
Gets or sets the soft keyboard type
letterSpacing
number
Gets or sets letter space style property.
lineHeight
number
Gets or sets line height style property.
maxLength
number
Gets or sets the max number of symbols allowed as input.
returnKeyType
ReturnKeyType
Gets or sets the soft keyboard return key flavor.
secure
string
Gets or sets if a text field is for password entry.
text
string
Gets or sets the text.
textAlignment
TextAlignment
Gets or sets the text alignment.
textDecoration
TextDecoration
Gets or sets the text decoration.
textTransform
TextTransform
Gets or sets the text transform.
whiteSpace
WhiteSpace
Gets or sets white space style property.
Name
Description
focus
Tries to focus the view. Returns a value indicating
whether this view or one of its descendants actually took
focus. Returns boolean
.
dismissSoftInput
Hides the soft input method, ususally a soft keyboard.
Name
Description
blur
Emitted when the text field is unfocused.
focus
Emitted when the text field is focused.
returnPress
Emitted when the return key is tapped.
textChange
Emitted when there is a new text input.