When trying to edit text in the middle eg, exampl|e.com if l is cleared in the above example, the cursor moves to exam|pe.com
<TextInput
{...this.props}
ref="input"
underlineColorAndroid="transparent"
style={[styles.valueText]}
defaultValue={this.props.defaultValue}
value={this.state.text}
maxLength={this.props.maxLength}
onFocus={() => this.setFocus()}
onBlur={() => this.unsetFocus()}
onChange={(event) => this.setText(event.nativeEvent.text)}
multiline={true}
/>
setText(value: string | undefined) {
this.setState({
text: value,
});
if (this.props.onChangeTextValue) {
return this.props.onChangeTextValue(value);
}
}
The cursor is moving to the previous position.