Skip to content
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

Dismiss/Hide keyboard for text input #3473

Closed
ma94264 opened this issue Oct 17, 2015 · 0 comments
Closed

Dismiss/Hide keyboard for text input #3473

ma94264 opened this issue Oct 17, 2015 · 0 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ma94264
Copy link
Contributor

ma94264 commented Oct 17, 2015

when we change keyboard to the one without 'return' key for a text input, how to dismiss the keyboard by a function?

This question cost me some time to figure out, here is the solution:

Firstly, define this at the start, (it's from Library Utility folder):

var dismissKeyboard = require('dismissKeyboard');

then call:

dismissKeyboard();

@ma94264 ma94264 closed this as completed Oct 17, 2015
@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants