Is it possible to have a TextInput for react native that allows only lowercase input?
As of now, tried this code:
state = { login: '' }
changeUsernameToLowercase = (input) => {
var temp = input.toLowerCase()
this.setState({login: temp})
}
<TextInput
onChangeText={(login) => this.changeUsernameToLowercase(login)}
value={this.state.login}
autoCapitalize='none' />
But it seems to not work on some android devices.
Maybe there is a more efficient way on doing this?