Open Taymindis opened 4 years ago
I had the same issue. All you have to do is remove value={this.state.text}
from your <TextInput />
component. For example:
<View style={{ flex: 1, flexDirection: 'column' }}>
<TextInput
onBlur={() => {
console.log('blur');
}}
onChangeText={text => {
this.setState({ text });
}}
style={{ flex: 1 }}
multiline
/>
</View>
Describe the bug TextInput Cursor keep reseting to first position when setState on event of changeText,
To Reproduce
Expected behavior It should be back to the position where it lay