React-Native cannot write first letter with noncapital

Ali Zeynalov picture Ali Zeynalov · Nov 16, 2016 · Viewed 48.8k times · Source

I have some trouble with react-native. I have an Input component(like textfield) for user to enter his email address, but the thing is that, first letter always comes as capital letter default and it is impossible to make it non-capital. How can I change it like first letter can be small, as well? enter image description here

Answer

Sport picture Sport · Nov 16, 2016

TextInput has autoCapitalize to handle this.

`autoCapitalize enum('none', 'sentences', 'words', 'characters')`

For example try like this:

<TextInput
   placeholder=""
   placeholderTextColor='rgba(28,53,63, 1)'
   autoCapitalize='none'
   value='test'
/>