uitextinput - My textinput in react native blurs directly after focus -


i have 2 forms in react-native. 1 of works perfectly, other (in component) has bug. textinputs in form keep blurring when getting focus.

the video made (see gif below) shows whenever click in input gets focus , blurs right after it.

the code input (now debugs):

<textinput value={group.name}     bluronsubmit={false}     onblur={() => console.log('i blur')}     onfocus={() => console.log('i focus')}     autofocus={true} style={styles.textinput} /> 

everytime click input focusses , blurs

i found answer... , confused why answer, here go:

apparently when render textinput inside of tabbarios component , set selected={true} on tab make impossible type textinputs. have no idea why. had on true in order not have click on tab every time while building views. guess set default differently :)


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -