这是我使用 React Native Paper 生成文本输入的 React Native 代码。
import * as React from 'react';
import { TextInput } from 'react-native-paper';
class MyComponent extends React.Component {
state = {
text: ''
};
render(){
return (
<TextInput
label='Email'
value={this.state.text}
onChangeText={text => this.setState({ text })}
/>
);
}
}
它将生成以下文本输入:
如何将“输入标签”的文本颜色从蓝色更改为红色?
这是官方文档:https ://callstack.github.io/react-native-paper/1.0/text-input.html 但似乎找不到将颜色从蓝色变为红色的方法。