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
Post a Comment