react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[TextInput] Supply access to UITextView.inputAccessoryView attribute on <TextInput />

Open ghost opened this issue 11 years ago • 101 comments

It would be cool to have this to make sticky text inputs.

(t21661353)

ghost avatar Mar 27 '15 22:03 ghost

@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 avatar Sep 24 '15 05:09 auser

@auser not sure how far along you were from this gist: https://gist.github.com/auser/38d7484d986ab911152c#file-UIViewController+InputAccessory-m

sjmueller avatar Sep 30 '15 05:09 sjmueller

@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

idibidiart avatar Sep 30 '15 12:09 idibidiart

@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.

auser avatar Sep 30 '15 15:09 auser

+1 :+1:

GantMan avatar Oct 27 '15 15:10 GantMan

:+1:

pfeiffer avatar Oct 29 '15 08:10 pfeiffer

+1

Is there any update on this? Maybe an updated gist that we could leverage locally in the meantime?

braunsquared avatar Nov 18 '15 15:11 braunsquared

Still not implemented?

lewisbarber avatar Nov 24 '15 14:11 lewisbarber

can any tell me that how to add done button for the keyboardType="number-pad". At the top of the keyboard

shaikhussian avatar Nov 30 '15 04:11 shaikhussian

+1

Any progress on this? :smile::+1:

danleveille avatar Jan 10 '16 01:01 danleveille

+1

yuriyvl avatar Jan 11 '16 13:01 yuriyvl

+1 @auser some progress notifications may be great.😄

Obooman avatar Jan 12 '16 08:01 Obooman

+1

sowdri avatar Jan 18 '16 07:01 sowdri

this would be amazing. really annoying not being able to close the keyboard on the numeric keypad.

jacob-russo avatar Feb 02 '16 10:02 jacob-russo

@auser and @idibidiart - did either of you come up with a solution that is usable, however imperfectly?

etodanik avatar Feb 10 '16 03:02 etodanik

@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 avatar Feb 10 '16 04:02 danleveille

@danleveille - could you share your solution please?

lewisbarber avatar Feb 24 '16 11:02 lewisbarber

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 avatar Mar 07 '16 00:03 brentvatne

@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.

danleveille avatar Mar 15 '16 07:03 danleveille

+1

nazywamsiepawel avatar May 23 '16 13:05 nazywamsiepawel