I'm using TextInput and i'd like the first symbol in the TextInput to be constant. So if the length of the text is one symbol i could ignore backspaces and onChangeText event could be ignored. The following code doesn't work, the onChangeText event occurs anyway. Please, is there any solution?
<Input
onChangeText = { (text) => onTextChange(text) }
onKeyPress = { (e) => {
if(e.nativeEvent.key === 'Backspace') {
e.preventDefault();
e.stopPropagation();
}
} }
/>