android - 如何在 React Native 中更改 TextInput 占位符的样式?

标签 android ios react-native

有没有办法为 React Native 中 TextInput 的 placeholder 设置 fontStyle: 'italic' only

寻找 here at the documentation好像只能设置占位符和占位符TextColor。

最佳答案

您可以使用 placeholderTextColor 属性设置占位符颜色。

<TextInput placeholderTextColor={'red'} />

关于android - 如何在 React Native 中更改 TextInput 占位符的样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35581548/

相关文章:

javascript - 如何从数据集的末尾开始加载 Flatlist

javascript - 单击 React-Navigation 中的 Bottom Tab Navigator 后如何打开 DrawerNavigator?

android - Android 中的 Java 客户端套接字连接

ios - CGlayer 的内存问题

ios - CoreAnimation 性能分析 - CAReplicatorLayer 和 CAShapeLayer

c# - 如何在 iOS/Xamarin 上获取时间格式(24/12 小时)的设备设置

react-native - react native 和流程错误消息

java - 我想制作一个 recyclerview,将数据显示到 SQLITE 数据库中的新 Activity

android - Firebase 处理 Intent AbstractMethodError

android - 使用经过改造的 url 编码的 POST 请求发送 JSONObject