gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 21:54:56 25 4
gpt4 key购买 nike

有没有办法为 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com