-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[TextInput] How to show "Done" button above "number-pad" keyboard? #1190
Comments
@ranyefet - you could listen to keyboard events and set the position of your |
You want what's called the input accessory but it's not yet built yet. |
@brentvatne @ide Thanks for the comments. Do you know If this is a bug with the simulator, or do I need to implement this functionality with code? |
You should implement/configure it in code. The keyboard is very manual on iOS. ScrollView has some prop that lets you auto-dismiss the keyboard that you might want to look into. |
I'm working on adding the |
Let's collapse this issue into #371 |
@auser Are you still working on |
+1 |
2 similar comments
+1 |
+1 |
As a temporary workaround I found this lib which works pretty well, but forces you to have the separated files (ex. |
I just made a keyboard dismissing component for number keyboard on iOS called DoneBar if anyone wants to give it a try. |
+1 still looking forward |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
Here is implementation for this feature https://gist.github.com/chih/3aa8b3bbd490137a31f0b864eff1532e Here is also video on the implementation https://www.youtube.com/watch?v=RuzHai2RVZU |
in your textInput just u have pass this property |
@lavarajallu This does not work when using |
+1 |
+1 this would be a great addition |
+1 |
2 similar comments
+1 |
+1 |
+1 |
2 similar comments
+1 |
+1 |
Not a single PR yet? |
+1 |
2 similar comments
+1 |
+1 |
…n iOS Summary: Standard only-numeric (number pad) keyboard on iOS does not have any "Done" or "Enter" button, and this is often very badly hurt user experience. Usually it can be solved by implementing custom `inputAccessoryView`, but RN does not have built-in support for customizing it. So, this commit introduced limited support only for "Done" button (returnKeyType="done") and it should suite very well for the vast majority of use cases. This is highly requested feature, see more details here: #1190 Reviewed By: mmmulani Differential Revision: D5268020 fbshipit-source-id: 90bd5bffac6aaa1fb7c5c2ac539b35b04d45918f
+1 |
…n iOS Summary: Standard only-numeric (number pad) keyboard on iOS does not have any "Done" or "Enter" button, and this is often very badly hurt user experience. Usually it can be solved by implementing custom `inputAccessoryView`, but RN does not have built-in support for customizing it. So, this commit introduced limited support only for "Done" button (returnKeyType="done") and it should suite very well for the vast majority of use cases. This is highly requested feature, see more details here: facebook/react-native#1190 Reviewed By: mmmulani Differential Revision: D5268020 fbshipit-source-id: 90bd5bffac6aaa1fb7c5c2ac539b35b04d45918f
+1 |
2 similar comments
+1 |
+1 |
The "Done" button is always shown in english? The phone (simulator) lang is in spanish and the button should display as "Hecho". I have this issue only on iOS. |
@marcioadr88 You need to add support for the localizations. See http://www.ibabbleon.com/iphone_app_localization.html |
It works, thanks @NicholasBertazzon |
Here you can add next also https://gist.github.com/renso3x/2939df594d8571ccfe23aa9bd70e96d7 |
+1 |
2 similar comments
+1 |
+1 |
returnKeyType='done' works with "number-pad" and "numeric" on v0.47.1 |
+1 |
1 similar comment
+1 |
I have the same problem trying to show "Next" using return key type, and it just doesn't show. Any ideas? This problem only exists on numeric pad, or any other kind of keyboard that shows only the numbers - it works just fine with normal keyboard. |
Very nice story how to dismiss numpad keyboard! |
Are there any native solutions for custom top bar for any type of keyboard? |
egedemon, i've seen your profile and i guess you are looking for JS solutions...I can't help you with JS. override func viewDidLoad() { |
Hello,
I'm trying to implement the following screen:
![2 2_verification_openkeypad_small](https://cloud.githubusercontent.com/assets/1016375/7520819/480eeec4-f4f2-11e4-8513-67b7cc99500e.jpg)
How can I get the bar above the keyboard to show up with "Done" button?
The text was updated successfully, but these errors were encountered: