diff --git a/docs/next/textinput.html b/docs/next/textinput.html index 8992a0d549f..86b7a33490e 100644 --- a/docs/next/textinput.html +++ b/docs/next/textinput.html @@ -89,72 +89,61 @@ AppRegistry.registerComponent(
  • View props...
  • Methods


    Reference

    Props

    -

    placeholderTextColor

    -

    The text color of the placeholder string.

    - - - - - - - -
    TypeRequired
    colorNo
    -

    allowFontScaling

    Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.

    @@ -166,6 +155,23 @@ AppRegistry.registerComponent(

    +

    autoCapitalize

    +

    Can tell TextInput to automatically capitalize certain characters.

    + + + + + + + + +
    TypeRequired
    enum('none', 'sentences', 'words', 'characters')No
    +

    autoCorrect

    If false, disables auto-correct. The default value is true.

    @@ -210,6 +216,28 @@ AppRegistry.registerComponent(

    +

    clearButtonMode

    +

    When the clear button should appear on the right side of the text view. This property is supported only for single-line TextInput component.

    + + + + + + + +
    TypeRequiredPlatform
    enum('never', 'while-editing', 'unless-editing', 'always')NoiOS
    +
    +

    clearTextOnFocus

    +

    If true, clears the text field automatically when editing begins.

    + + + + + + + +
    TypeRequiredPlatform
    boolNoiOS
    +

    contextMenuHidden

    If true, context menu is hidden. The default value is false.

    @@ -221,6 +249,27 @@ AppRegistry.registerComponent(

    +

    dataDetectorTypes

    +

    Determines the types of data converted to clickable URLs in the text input. Only valid if multiline={true} and editable={false}. By default no data types are detected.

    +

    You can provide one type or an array of many types.

    +

    Possible values for dataDetectorTypes are:

    + + + + + + + + +
    TypeRequiredPlatform
    enum('phoneNumber', 'link', 'address', 'calendarEvent', 'none', 'all'), ,array of enum('phoneNumber', 'link', 'address', 'calendarEvent', 'none', 'all')NoiOS
    +

    defaultValue

    Provides an initial value that will change when the user starts typing. Useful for simple use-cases where you do not want to deal with listening to events and updating the value prop to keep the controlled state in sync.

    @@ -232,6 +281,17 @@ AppRegistry.registerComponent(

    +

    disableFullscreenUI

    +

    When 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.

    + + + + + + + +
    TypeRequiredPlatform
    boolNoAndroid
    +

    editable

    If false, text is not editable. The default value is true.

    @@ -243,6 +303,54 @@ AppRegistry.registerComponent(

    +

    enablesReturnKeyAutomatically

    +

    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.

    + + + + + + + +
    TypeRequiredPlatform
    boolNoiOS
    +
    +

    inlineImageLeft

    +

    If defined, the provided image resource will be rendered on the left. The image resource must be inside /android/app/src/main/res/drawable and referenced like

    +
    <TextInput
    + inlineImageLeft='search_icon'
    +/>
    +
    + + + + + + + +
    TypeRequiredPlatform
    stringNoAndroid
    +
    +

    inlineImagePadding

    +

    Padding between the inline image, if any, and the text input itself.

    + + + + + + + +
    TypeRequiredPlatform
    numberNoAndroid
    +
    +

    keyboardAppearance

    +

    Determines the color of the keyboard.

    + + + + + + + +
    TypeRequiredPlatform
    enum('default', 'light', 'dark')NoiOS
    +

    keyboardType

    Determines which keyboard to open, e.g.numeric.

    The following values work across platforms:

    @@ -300,6 +408,17 @@ AppRegistry.registerComponent(
    +

    numberOfLines

    +

    Sets the number of lines for a TextInput. Use it with multiline set to true to be able to fill the lines.

    + + + + + + + +
    TypeRequiredPlatform
    numberNoAndroid
    +

    onBlur

    Callback that is called when the text input is blurred.

    @@ -367,6 +486,17 @@ AppRegistry.registerComponent(

    +

    onKeyPress

    +

    Callback that is called when a key is pressed. This will be called with { nativeEvent: { key: keyValue } } where keyValue is 'Enter' or 'Backspace' for respective keys and the typed-in character otherwise including ' ' for space. Fires before onChange callbacks.

    + + + + + + + +
    TypeRequiredPlatform
    functionNoiOS
    +

    onLayout

    Invoked on mount and layout changes with {x, y, width, height}.

    @@ -422,20 +552,25 @@ AppRegistry.registerComponent(

    -

    autoCapitalize

    -

    Can tell TextInput to automatically capitalize certain characters.

    - +

    placeholderTextColor

    +

    The text color of the placeholder string.

    - + + +
    TypeRequired
    enum('none', 'sentences', 'words', 'characters')No
    colorNo
    +
    +

    returnKeyLabel

    +

    Sets the return key to the label. Use it instead of returnKeyType.

    + + + + + +
    TypeRequiredPlatform
    stringNoAndroid

    @@ -486,17 +621,6 @@ AppRegistry.registerComponent(
    -

    selectTextOnFocus

    -

    If true, all text will automatically be selected on focus.

    - - - - - - - -
    TypeRequired
    boolNo
    -

    selection

    The start and end of the text input's selection. Set start and end to the same value to position the cursor.

    @@ -519,6 +643,47 @@ AppRegistry.registerComponent(

    +

    selectionState

    +

    An instance of DocumentSelectionState, this is some state that is responsible for maintaining selection information for a document.

    +

    Some functionality that can be performed with this instance is:

    + +
    +

    You can reference DocumentSelectionState in vendor/document/selection/DocumentSelectionState.js

    +
    + + + + + + + +
    TypeRequiredPlatform
    DocumentSelectionStateNoiOS
    +
    +

    selectTextOnFocus

    +

    If true, all text will automatically be selected on focus.

    + + + + + + + +
    TypeRequired
    boolNo
    +
    +

    spellCheck

    +

    If false, disables spell-check style (i.e. red underlines). The default value is inherited from autoCorrect.

    + + + + + + + +
    TypeRequiredPlatform
    boolNoiOS---

    style

    Note that not all Text styles are supported, an incomplete list of what is not supported includes: