Android 是否可以将背景色设置为卡片元素标题(react native elements)?

Android 是否可以将背景色设置为卡片元素标题(react native elements)?,android,react-native,Android,React Native,我需要帮助使用React native elements卡元素标题背景色。 我尝试使用此代码,但没有运气 <Card titleStyle={[styles.thinkMinTextTitle , robotoWeights.light]} title='Think a minute!'></Card> 谢谢你能试试容器样式而不是标题样式@AravindS他不想为容器设置样式。@Lasitha是的。这是清楚的。由于titleStyle是bg不起作用,我建议申请conta

我需要帮助使用React native elements卡元素标题背景色。 我尝试使用此代码,但没有运气

<Card titleStyle={[styles.thinkMinTextTitle , robotoWeights.light]} title='Think a minute!'></Card>

谢谢

你能试试
容器样式
而不是
标题样式
@AravindS他不想为容器设置样式。@Lasitha是的。这是清楚的。由于
titleStyle
是bg不起作用,我建议申请
containerStyle
来制作这个容器transparent@AravindS它尝试集装箱风格,但不太管用。@Lasitha是的,我只需要更改标题的背景
const styles = StyleSheet.create({ thinkMinTextTitle:{ backgroundColor:'#32cb00' }});