Optional
cursorWhen provided it will set the color of the cursor (or "caret") in the component.
Unlike the behavior of selectionColor
the cursor color will be set independently
from the color of the text selection box.
android
Optional
disableWhen false, if there is a small amount of space available around a text input (e.g. landscape orientation on a phone), the OS may choose to have the user edit the text inside of a full screen text input mode. When true, this feature is disabled and users will always edit the text directly inside of the text input. Defaults to false.
Optional
importantDetermines whether the individual fields in your app should be included in a
view structure for autofill purposes on Android API Level 26+. Defaults to auto.
To disable auto complete, use off
.
Android Only
The following values work on Android only:
auto
- let Android decideno
- not important for autofillnoExcludeDescendants
- this view and its children aren't important for autofillyes
- is important for autofillyesExcludeDescendants
- this view is important for autofill but its children aren'tOptional
inlineIf defined, the provided image resource will be rendered on the left.
Optional
inlinePadding between the inline image, if any, and the text input itself.
Optional
numberSets the number of lines for a TextInput. Use it with multiline set to true to be able to fill the lines.
Optional
returnSets the return key to the label. Use it instead of returnKeyType
.
android
Optional
selectionWhen provided it will set the color of the selection handles when highlighting text.
Unlike the behavior of selectionColor
the handle color will be set independently
from the color of the text selection box.
android
Optional
showWhen false, it will prevent the soft keyboard from showing when the field is focused. The default value is true
Optional
textVertically align text when multiline
is set to true
Optional
textSet text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced The default value is simple.
Optional
underlineThe color of the textInput underline.
Optional
verticalVertically align text when multiline
is set to true
Android Specific properties for TextInput
See
https://reactnative.dev/docs/textinput#props