Skip to content

Warning: "TextInput" : ref is not a prop.  #1358

@redbluenat

Description

@redbluenat

Environment

React Native: 0.60.5
React Native Paper: 3.0.0-alpha.5

Description

I had some issues with auto complete and text suggestion in previous version so I updated lib to the alpha version. It works like a charm for me and solved my problems but I start having a yellow warning screen.

Zrzut ekranu 2019-10-1 o 11 22 02

any ideas how to solve it? when I comment ref={this.handleTextInputRef} yellow screen disappear.

Reproducible Demo


  <PaperTextInput
              {...this.props}
              mode={isOutlined ? 'outlined' : 'flat'}
              ref={this.handleTextInputRef}
              onChangeText={this.onChangeText}
              value={this.state.textInputValue}
            />
...
 private handleTextInputRef = (ref: any) => {
    this.textInputReference = ref;
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions