android - How to set focus listener on TextInput in react native -


hi using textinput in react native application. want open date dialog on clicking on textinput. came in mind if allows listen focus events may work me.

i didn't find word around this. know how set focus listener on textinput in react native ?

<textinput   style={{     height: 40,     bordercolor: "gray",     borderwidth: 1,     margintop: 8   }}   underlinecolorandroid="transparent"   placeholder={strings.schedule_date}   onkeypress={keypress => console.log(keypress)} /> 

you can use onfocus prop this. callback called when text input focused. can read document.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -