React-native-gifted-chat: isTyping missing/not working

Created on 23 Jan 2020  路  9Comments  路  Source: FaridSafi/react-native-gifted-chat

Issue Description

isTyping is missing in methods on GiftedChat component

Steps to Reproduce / Code Snippets

<GiftedChat
        messages={this.state.messages}
        onSend={messages => this.onSend(messages)}
        isTyping={this.state.isTyping}
/>

this.state.isTyping is set to true

Expected Results

I dont see any indicator or any loader when waiting for a message!

Most helpful comment

Any updates on when this will be published? 馃懠 @xcarpentier

All 9 comments

Hi
Sorry not yet published

You can add the following; replacing this.channel.typing with whatever function your chat service uses.

  typing() {
    this.channel.typing();
  }

// Gifted Chat Props
onInputTextChanged= {this.onTyping}

Any updates on when this will be published? 馃懠 @xcarpentier

Hi
Sorry not yet published

please remove that feature on readme if is not published yet

Please is this implemented yet?

it looks like the TypingIndicator.tsx file is included in the src for this project, yet I am unable to use the isTyping feature. Do you have an idea about when this might be usable?

I tried using isTyping={true} today on Android but it doesn't show up, any news on this?

Hi,
This is by design: not shown on the mount.
Try to use a boolean state variable and change the value.
Just like here:
https://github.com/search?q=isTyping+setIsTyping+filename%3AApp.tsx+repo%3AFaridSafi%2Freact-native-gifted-chat&type=Code

@xcarpentier thanks, manipulating state solved the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

emilkarl picture emilkarl  路  3Comments

radvc picture radvc  路  3Comments

redwind picture redwind  路  3Comments

SytzeAndr picture SytzeAndr  路  3Comments

maharjanaman picture maharjanaman  路  3Comments