Interface TextInputState

This class is responsible for coordinating the "focused" state for TextInputs. All calls relating to the keyboard should be funneled through here

interface TextInputState {
    blurTextInput(textField?): void;
    currentlyFocusedField(): number;
    currentlyFocusedInput(): Component<unknown, {}, any> & Readonly<NativeMethods>;
    focusTextInput(textField?): void;
}

Methods

  • Parameters

    • Optional textField: Component<unknown, {}, any> & Readonly<NativeMethods>

      ref of the text field to focus Unfocuses the specified text field noop if it wasn't focused

    Returns void

  • Returns number

    Deprecated

    Use currentlyFocusedInput Returns the ID of the currently focused text field, if one exists If no text field is focused it returns null

  • Returns the ref of the currently focused text field, if one exists If no text field is focused it returns null

    Returns Component<unknown, {}, any> & Readonly<NativeMethods>

  • Parameters

    • Optional textField: Component<unknown, {}, any> & Readonly<NativeMethods>

      ref of the text field to focus Focuses the specified text field noop if the text field was already focused

    Returns void