我必须更改textInput
的占位符文本的字体系列。如果我们添加这个secureTextEntry={true}
,提到的字体系列被设置为占位符文本。如何在React Native中更改textInput占位符的字体系列
<TextInput style={styles.textboxfield} secureTextEntry={true} placeholder="Password" />
但是,如果我们删除此secureTextEntry={true}
,我们不能设置字体家族的占位符
<TextInput style={styles.textboxfield} placeholder="Password" />
风格是:textboxfieldd:{ 高度:39, 的backgroundColor: '#FFFFFF', marginBottom:0, fontFamily中: 'Inconsolata正规', },
我怎样才能改变字体家族的占位符的文本?
这是一个React Native问题。计划在RN 0.42发布时发布修复程序。请参阅[此处]的讨论(https://github.com/facebook/react-native/issues/4600)和修复[here](https://github.com/facebook/react-native/pull/12000) 。 – x0z