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

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept