Message is sent only after pressing twice on the "Send" button
See original GitHub issueIssue Description
When the keyboard is displayed and the send button is pressed, the keyboard is dismissed but nothing is sent. The message is sent after pressing a second time on the button.
Steps to Reproduce / Code Snippets
const QvInputToolBar = (props: any) => {
const styles = useDynamicStyleSheet(dynamicStyles);
return <InputToolbar {...props} containerStyle={styles.textInputContainer} />;
};
<GiftedChat
...
renderInputToolbar={props =>
<QvInputToolBar {...props} />
}
...
/>
...
Expected Results
Message is sent after pressing “Send” the first time.
Additional Information
- Nodejs version: 10.16.2
- React version: 16.13.1
- React Native version: 0.62.2
- react-native-gifted-chat version: 0.16.3
- Platform(s) (iOS, Android, or both?): both
- TypeScript version: 4.0.2
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5
Top Results From Across the Web
I sometimes have to press the send button twice for each ...
Hi! Sometimes a bug occurs where (having multilingual typing evabled) I have to tap send twice, since the first time I do my...
Read more >Need to click SEND/RECEIVE twice to send email
Click on Tools and then click on Options. In the Options window, go to Mail Setup tab. In the Send/Receive section, click to...
Read more >On pressing a button in panel, why is the data being sent twice ...
I need to make it only sent once if I press once, how to achieve it? And why is the data being sent...
Read more >Prevent Accidentally Sending an Email Message - Outlook Tips
Outlook has an option to enable/disable Ctrl+Enter for send. In addition, the first time you press Ctrl+Enter while composing a message, ...
Read more >Messages are Double Spaced for the Recipient
This is because of the way Outlook creates line breaks in HTML and how browsers or other clients interpret them. In some cases,...
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 FreeTop 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
Top GitHub Comments
I never got this fixed. We just accepted the behavior as it wasn’t too disruptive to users.
add
<ScrollView keyboardShouldPersistTaps='always'>
Read this link for more info https://medium.com/react-native-training/todays-react-native-tip-keyboard-issues-in-scrollview-8cfbeb92995b