-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to manually dismiss the keyboard? #647
Comments
import dismissKeyboard from 'dismissKeyboard'; // for dismiss keyboard on your event: |
Worked excellent !!! |
I close this issue but create a FAQ in readme to refer it: https://github.com/FaridSafi/react-native-gifted-chat#questions |
Sorry I don't understand where to put "import dismissKeyboard from 'dismissKeyboard';" and "dismissKeyboard();", can you help me please ? |
You should use module Keyboard from react-native to hide keyboard.
|
Thank your for your response ! My research was finally "how to remove the keyboard", and I've finally succeeded with those 2 lines in the props : I've another question (sorry I don't know where else to post it) : Thank you ! |
How did you guys detect user when pressing out of the textinput? |
@kerubkim, I'm not sure that you need detect press out of textinput. If you want to hide keyboard on tap on scrollview, you can use If you really want to handle click out of input, you can try |
Is there a way to manually dismiss the keyboard?
For example, if you type certain text, the keyboard dismisses.
The text was updated successfully, but these errors were encountered: