Tcomb-form-native: Question - bring up a lowercase keyboard

Created on 22 Jul 2016  路  6Comments  路  Source: gcanti/tcomb-form-native

Version

Tell us which versions you are using:

  • tcomb-form-native v0.5.3
  • react-native v0.23.1

Expected behaviour

This is more of a question, how do I bring up the lowercase keyboard on iOS when I have a simple form. e.g.-
username: t.String
password: t.String

When I select the textbox on iOS the keyboard comes up and it defaults to normal keyboard. So the first key is an Uppercase letter. In React (i.e HTML) you can disable this behaviour and bring up the lower case keyboard.

In the case of a username / password field, the keyboard defaulting to Uppercase is annoying.

Actual behaviour

As you type, the first character is Upper Case.

Steps to reproduce

1.
2.
3.

Stack trace and console log


Thanks very much.

Most helpful comment

autoCapitalize is your friend: http://facebook.github.io/react-native/releases/0.30/docs/textinput.html#autocapitalize

Take a look at the TextInput API docs 馃槉

All 6 comments

If there is an react-native API for that (e.g. keyboardType), then you should be able to do that with tcomb-form-native as well

In React (i.e HTML) you can disable this behaviour and bring up the lower case keyboard

how?

autoCapitalize is your friend: http://facebook.github.io/react-native/releases/0.30/docs/textinput.html#autocapitalize

Take a look at the TextInput API docs 馃槉

@alvaromb thanks. that worked.

@gcanti actually its the same in react (web) too. i.e. autoCapitalize="none"

@alvaromb: Worked dost! Thank you :)

yes exactly we have to use : autoCapitalize="none"
its working for me ):

if you are using component in that also u have to mention autoCapitalize={autoCapitalize}

Thanks hope u saved ur time

Kallayya Hiremath

autoCapitalize is your friend: http://facebook.github.io/react-native/releases/0.30/docs/textinput.html#autocapitalize

Take a look at the TextInput API docs 馃槉

link no longer valid

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dvlprmartins picture dvlprmartins  路  4Comments

abdelghafourzguindou picture abdelghafourzguindou  路  4Comments

albertogugliotta picture albertogugliotta  路  3Comments

sibelius picture sibelius  路  5Comments

michaelbenker picture michaelbenker  路  3Comments