15

Trying to set keyboardType on a TextInput with the dark keyboard theme, how do you do this in React Native?

1
  • 1
    It is not yet supported but if you need it, it would be fairly straightforward to implement keyboardAppearance. Commented May 13, 2015 at 5:39

3 Answers 3

15

It is now supported for iOS.keyboardAppearance prop for iOS for TextInput with possible values of default, light, or dark

As documented here: https://facebook.github.io/react-native/docs/textinput

Sign up to request clarification or add additional context in comments.

1 Comment

Does somebody know about the decision for Android?
8

you can set keyboardAppearance in Textinput for change theme 'default', 'light', 'dark'

<TextInput
    keyboardAppearance='dark'
/>

Comments

-1

you can just change the color in style to black in the textInput style color:'black'

1 Comment

this is just change text color in textinput box. for keyboard color change need to set keyboardAppearance in textinput

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.