【发布时间】:2021-01-21 14:58:06
【问题描述】:
我正在为我的应用程序使用来自 react-native-paper 的 Button 组件。我通过背景设置了一些值。如何更改触摸时出现的波纹颜色。
我的按钮组件
<Button
mode="contained"
style={styles.button}
labelStyle={styles.buttonLabel}
uppercase={false}
onPress={() => {}}
>
Click Here
</Button>
使用的样式
button: {
marginTop: 30,
backgroundColor: Colors.BRIGHT_YELLOW,
padding: 5,
borderRadius: 10
},
buttonLabel: {
fontFamily: FONT_FAMILY.POPPINS_MEDIUM,
fontSize: FONT_SIZE[18],
color: Colors.PURE_WHITE
}
【问题讨论】:
标签: react-native react-native-paper