Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.