是否可以在React Native上设置输入占位符的样式。这是一个输入。风格输入占位符R
<TextInput style={styles.input}
onChangeText={(password) => this.setState({password})}
value={this.state.password}
placeholder='Password'
secureTextEntry={true}/>
如何定义styles.input
来编辑占位符的文本颜色?
在CSS上,需要供应商前缀。
目前只能将'placeholderTextColor'定义为''的属性。够了吗? –
zvona
就是够了! –