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

Today Walkin 14th-Sept

Network Error and Timeout on Authorize.net JS

Spring Elasticsearch Operations