convert TextInput to uppercase with react-native

I have an onChangeText that converts the text to uppercase when I'm writing, but the moment I start to delete some of the writing, the text begins to be duplicated.

<TextInput
placeholderTextColor="gray" value={name}
onChangeText={(text) => setName(text.toUpperCase())}
selectionColor="orange"
autoCapitalize='none'
autoCorrect={false}
selectTextOnFocus={false}
/>


Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)