[TextInput] Supply access to UITextView.inputAccessoryView attribute on <TextInput />
It would be cool to have this to make sticky text inputs.
(t21661353)
@idibidiart Can you share your solution? Is that a pure-JS solution or a UIInputAccessory?
Update to my work: lost my uncommitted code in a (unfortunate) reformat of a faulty OS.
@auser not sure how far along you were from this gist: https://gist.github.com/auser/38d7484d986ab911152c#file-UIViewController+InputAccessory-m
@auser sorry didn't see your messsage. I'm just browsing this thread again. Mine is a simple JS based solution that is based on DeviceEmitter/KeyboardWillShow event and a simple ankmation of a "Done" button view that is initially hidden below the screen and is then animated up to coincide with the keyboards own animation. I just saw the native solution by @sjmeuller and I'm wondering if something like this can make it into the next version of React Native @nicklockwood @ide
@sjmueller I forgot I posted that!
Thanks for the reminder. That was the beginning of my work. The issue with that code, as of then was that I wanted to design it with the native 'View' library. With that implementation, it doesn't quite work yet.
Was talking with @ide to understand that. Perhaps he has an idea with the release of 0.11.x. That was on 0.5.0.
Anyway, I can get back to work on it. Thanks for the reminder.
+1 :+1:
:+1:
+1
Is there any update on this? Maybe an updated gist that we could leverage locally in the meantime?
Still not implemented?
can any tell me that how to add done button for the keyboardType="number-pad". At the top of the keyboard
+1
Any progress on this? :smile::+1:
+1
+1 @auser some progress notifications may be great.😄
+1
this would be amazing. really annoying not being able to close the keyboard on the numeric keypad.
@auser and @idibidiart - did either of you come up with a solution that is usable, however imperfectly?
@israelidanny I ended up making my own custom one, though the implementation is pretty messy. Had trouble with the animations, though it's usable and it seems to be working fine in my live app.
@danleveille - could you share your solution please?
Created a ProductPains issue for this here: https://productpains.com/post/react-native/make-ios-uitextviewinputaccessoryview-on-textinput-/ -- please upvote if this is important to you.
@danleveille - if you can share your implementation, messy or otherwise, that could be helpful as a starting point :)
@brentvatne @lewisbarber @israelidanny So sorry for the late response!
Here's my current implementation: @danleveille/react-native-input-accessory-demo
Again, it's not perfect, and it's a little messy, but it works and I'm using it in my live app and never had any users complain. Feel free to contribute if you can make it any smoother.
+1