Open radouanedev opened 5 years ago
Hi,
This works for me, at least it sets the field state to 'active'. Then in the render function of the 'CustomTextInput', I added:
{ formStates.filter((state) => meta[state]).map((state) => { if(state === 'active'){ this.refs.email.focus() } }) }
Thanks @seppestaes i wanted to focus it by actions creator but it doesn't works, so i did it with a simple reference then it is worked.
Hello guys. I ask you guys, how to focus an Input in dispatch actions (react native) ? I try to use this function inside my action but it doesn't work for me :