I've been trying to catch the keyboard's events within a TextInput
in react-native
.
By reading the component's doc (https://facebook.github.io/react-native/docs/textinput.html) I noticed the onKeyPress
function which fits perfectly what I need. But it is labelled as ios
only. I haven't found anything about an android
workaround except this issue (https://github.com/facebook/react-native/issues/1882) which has been inactive for a couple months now ...
What I'd need to do is calling a specific method when Backspace
is pressed and it looks like it can only be done for ios
for now ...
Do you guys know any workaround for this ?
Thanks in advance :)