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. textinput
s 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} />
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
Post a Comment