react native - Detecting send/submit button in a multi-line TextInput -


the react native textinput component doesn't support onsubmitediting event if specified multi-line input.

is there way detect when user presses enter/submit/send (depending on keyboard layout specified) button after entering text?

on ios should work according documentation.

use onblur function:

callback called when text input blurred

in combination ios bluronsubmit:

if true, text field blur when submitted. default value true single-line fields , false multiline fields. note multiline fields, setting bluronsubmit true means pressing return blur field , trigger onsubmitediting event instead of inserting newline field.

i'll try testing this.

edit: done testing

bluronsubmit doesn't work it's supposed in react-native 0.14.2. when set true, return/done button , enter key create newline , not blur field.

i'm not able test on newer versions @ moment.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -