ViewManager #The final Java step is to register the ViewManager to the application, this happens in a similar way to Native Modules, via the applications package member function createViewManagers.
ViewManager #The final Java step is to register the ViewManager to the application, this happens in a similar way to Native Modules, via the applications package member function createViewManagers.
Note that some props are only available with multiline={true/false}:
Can tell TextInput to automatically capitalize certain characters.
If false, disables auto-correct. The default value is true.
If true, focuses the input on componentDidMount. -The default value is false.
Provides an initial value that will change when the user starts typing. +The default value is false.
If true, the text field will blur when submitted. +The default value is true for single-line fields and false for +multiline fields. Note that for multiline fields, setting blurOnSubmit +to true means that pressing return will blur the field and trigger the +onSubmitEditing event instead of inserting a newline into the field.
Provides an initial value that will change when the user starts typing. Useful for simple use-cases where you don't want to deal with listening to events and updating the value prop to keep the controlled state in sync.
If false, text is not editable. The default value is true.
Determines which keyboard to open, e.g.numeric.
The following values work across platforms:
- default
@@ -26,11 +30,7 @@ cases this may cause flickering - one common cause is preventing edits
by keeping value the same. In addition to simply setting the same value,
either set editable={false}, or set/update maxLength to prevent
unwanted edits without flicker.
Sets the number of lines for a TextInput. Use it with multiline set to -true to be able to fill the lines.
The color of the textInput underline.
If true, the text field will blur when submitted. -The default value is true for single-line fields and false for -multiline fields. Note that for multiline fields, setting blurOnSubmit -to true means that pressing return will blur the field and trigger the -onSubmitEditing event instead of inserting a newline into the field.
When the clear button should appear on the right side of the text view
If true, clears the text field automatically when editing begins
If true, the keyboard disables the return key when there is no text and +true to be able to fill the lines.
The color of the textInput underline.
When the clear button should appear on the right side of the text view
If true, clears the text field automatically when editing begins
If true, the keyboard disables the return key when there is no text and automatically enables it when there is text. The default value is false.
Determines the color of the keyboard.
Callback that is called when a key is pressed. Pressed key value is passed as an argument to the callback handler. Fires before onChange callbacks.
Determines how the return key should look.
If true, all text will automatically be selected on focus
See DocumentSelectionState.js, some state that is responsible for