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.

Message is sent only after pressing twice on the "Send" button

See original GitHub issue

Issue 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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

1reaction
nabylbcommented, Feb 2, 2021

I never got this fixed. We just accepted the behavior as it wasn’t too disruptive to users.

0reactions
omidbarcelonacommented, Oct 4, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

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