Skip to content

Strange behavior with onChange in overridden Composer for typing indicator for that user #286

@brianinator

Description

@brianinator

Issue Description

By using therenderComposer to access the onChange prop it will disable inherited props like renderSend and this.props.text and the growing height of the TextInput.

Steps to Reproduce / Code Snippets

  renderComposer(props) {
    return (
      <Composer {...props} onChange={() => this.handleChangeText()} />
    )
  }

Expected Results

Composer remains intact and onChange sends back event information to be able to fire off that the user is typing.

Additional Information

  • React Native version: 0.36.0
  • react-native-gifted-chat version: 0.0.6
  • Platform(s) (iOS, Android, or both?): iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions