React-native-gifted-chat: Send Button not working while Keyboard is open

Created on 23 Nov 2016  路  11Comments  路  Source: FaridSafi/react-native-gifted-chat

On my iOS version of the App, when the keyboard is open it is not possible to hit the send button. When I try to press it it will close the keyboard instead of sending the message. On Android this works just fine. Once the Keyboard is closed I am able to press the send Button.

Do you have any Idea how to fix this ?

  • React Native version: 0.36
  • react-native-gifted-chat version: v0.0.7
  • Platform(s) (iOS, Android, or both?): iOS

Most helpful comment

@morelazers try setting keyboardShouldPersistTaps='always' in contentProps prop of your react-native-scrollable-tab-view

All 11 comments

I also have this problen! Have any idea to fix it?

Same here

textinpu blur first(keyborad close), then send button can be pressed, but I don't know how to resolve it

I have this problem on Android too. RN 0.40

This PR should fix it https://github.com/FaridSafi/react-native-gifted-chat/pull/332
Can you please use master and let me know if this is resolved?

@kfiroo doesn't fix, I tried manually before it was merged.

Also have tried #327 to no avail.

I have a GiftedChat component inside a react-native-scrollable-tab-view if that is any help

@morelazers try setting keyboardShouldPersistTaps='always' in contentProps prop of your react-native-scrollable-tab-view

@kfiroo that got it, thank you so much!!

thanks , I got it, too

Wrap your GiftedChat with KeyboardAvoidingView. Will fix.

I struggle the whole day. Turn out I wrap my Gifted chat in a Modal, some one wrap it in a Listview (cmt above), that wraper cause the proplem.

Thanks @kfiroo this working for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luisar picture luisar  路  3Comments

radvc picture radvc  路  3Comments

jasonwcfan picture jasonwcfan  路  3Comments

xcxooxl picture xcxooxl  路  3Comments

inceptivetech picture inceptivetech  路  3Comments