Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change styling of TextInput placeholder in React Native?

Is there a way to set fontStyle: 'italic' only for the placeholder of the TextInput in React Native?

looking here at the documentation seems like you can only set a placeholder and placeholderTextColor.

like image 377
Zohar Levin Avatar asked Feb 23 '16 15:02

Zohar Levin


Video Answer


1 Answers

You can set your placeholder color by using the placeholderTextColor prop.

<TextInput placeholderTextColor={'red'} /> 
like image 56
Sebastián Lara Avatar answered Sep 22 '22 19:09

Sebastián Lara