question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

renderFooter is not getting triggered on typingText update

See original GitHub issue

Could someone please provide example code for renderFooter. This is my code:


<GiftedChat
        messages={this.giftedChatMessages}
        onSend={this.onSend}
        renderAvatar={null}
        renderChatFooter={this.renderFooter}
        onInputTextChanged={this.onInputTextChanged}
        user={{
          _id: id,
        }}
        imageStyle={{}}
      />

 renderFooter() {
    if (this.opponentIsTyping) {
      return <Text>{this.opponentIsTyping}</Text>;
    }
    return null;
  }

Even if this.opponentIsTyping is updated, renderFooter is not getting triggered. Hence " User is typing" footer is not showing up.

Please help me with this.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nandiniparimi1107commented, Jan 6, 2019

For anyone having a similar issue, please import next release, this issue should be fixed by next release. Also, use extraData prop to pass the state variable which can be used to toggle footer.

1reaction
nandiniparimi1107commented, Dec 31, 2018

@vahid13666 I got it man!

Its because the flatlist does not re-render on update, we need to explicitly pass props to let flatlist know when to update. I have created a PR for fixing this, lets see if @xcarpentier can merge it

Read more comments on GitHub >

github_iconTop Results From Across the Web

useEffect not getting trigger after state change - Stack Overflow
I'm making a custom dropdown, that allows for pushing new items in the dropdown. For some reason the useEffect is not being triggered...
Read more >
https://betterdiscord.app/gh-redirect?id=9
getByProps("typing", "text");}, get UserPopout() {return _webpackmodules__WEBPACK_IMPORTED_MODULE_1__["default"].getByProps("userPopout");}, get ...
Read more >
Bug List - Bugs - Eclipse
513133, M2E-WTP, overlay, m2e-wtp.core-inbox, UNCO, ---, EAR project with overlay WAR no getting republished on sub project update, 2017-08-23.
Read more >
How to build a Chat App with React Native
For us to get into the crucial parts of the app quickly, I prepared a ... Lastly, update the android/app/build.gradle file and include...
Read more >
Download Diff File
CSS); + if (!exists) return; // This is first load, no need to reload dependent plugins + ... getByProps("typing", "text");}, + get UserPopout()...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found