tylermadison
tylermadison

Reputation: 335

How to set react-native keyboard theme to dark

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

Upvotes: 15

Views: 11083

Answers (3)

ryan0
ryan0

Reputation: 1525

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

Upvotes: 15

Akshay I
Akshay I

Reputation: 4175

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

<TextInput
    keyboardAppearance='dark'
/>

Upvotes: 8

Firas Kedidi
Firas Kedidi

Reputation: 31

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

Upvotes: -1

Related Questions