| | |
| | Text to be used by screen readers
|
| | It is hard or impossible to tell by a reference to an instance of a component from where this component has been instantiated You can assign this property and check instance.props.accessibilityId For example accessibilityId is used in View's FocusArbitrator callback
|
| | Should fonts be scaled according to system setting?
|
| 'none' | 'sentences' |'words' |'characters'
| |
| | Should auto-correction be applied to contents?
|
| | Should be focused when the component is mounted, see also View's arbitrateFocus property WARNING: autoFocus=true means that this TextInput's requestFocus() method will be called, however calling requestFocus() might have no effect (for example the input is disabled), the application has to handle this either while setting this property or in the View's FocusArbitrator callback
|
| | Should focus be lost after submitting?
|
| 'never' | 'while-editing' | 'unless-editing' | 'always'
| iOS and Windows only property for controlling when the clear button should appear on the right side of the text view Default behavior dependends on platform: equivalent to 'never' on iOS, and 'always' on Windows
|
| | Initial value that will change when the user starts typing
|
| | Disable full screen editor mode?
|
| | Can text be edited by the user?
|
| 'default' | 'light' | 'dark'
| iOS-only prop for controlling the keyboard appearance
|
| 'default' | 'numeric' | 'email-address' | 'number-pad'
| On-screen keyboard type to display
|
| | |
| | Should the control support multiple lines of text?
|
| | Called when the control loses focus
|
| (newValue: string) => void
| Called when the text value changes
|
| | Called when the control obtains focus
|
| (e: KeyboardEvent) => void
| |
| (e: ClipboardEvent) => void
| Called when text is pasted into the control (not currently supported on iOS or Android)
|
| (newScrollLeft: number, newScrollTop: number) => void
| Called when the selection scrolls due to overflow
|
| (start: number, end: number) => void
| Called when the selection range or insertion point location changes
|
| | Called when the text input submit button is pressed; invalid if multiline is true
|
| | Placeholder text to dislpay when input is empty
|
| | Color of placeholder text
|
| 'done' | 'go' | 'next' | 'search' | 'send'
| iOS and android prop for controlling return key type
|
| | Obscure the text input (for passwords)?
|
| | Should spell checking be applied to contents?
|
| TextInputStyleRuleSet | TextInputStyleRuleSet[]
| See below for supported styles
|
| | ID that can be used to identify the instantiated element for testing purposes
|
| | |
| | If defined, the control value is forced to match this value If undefined, control value can be modified by the user
|