renderFooter is not getting triggered on typingText update
See original GitHub issueCould 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:
- Created 5 years ago
- Comments:14 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@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