【发布时间】:2021-08-26 10:23:56
【问题描述】:
如何从 react-native-paper 更改为 FAB.Group 组件的背景颜色。如果我添加背景颜色,它会更改叠加层的颜色而不是按钮的颜色。非常感谢您的帮助。谢谢
<FAB.Group
style={styles.fab}
open={open}
color={"#333366"}
icon={open ? "plus" : "plus"}
actions={[
{
icon: "alpha-r-circle",
label: "Add Custom Room",
onPress: () => navigation.navigate("Create Room"),
},
{
icon: "television",
label: "Add Appliance",
onPress: () => navigateAddAppliance(),
small: false,
},
]}
onStateChange={onStateChange}
// onPress={() => {
// if (open) {
// // do something if the speed dial is open
// }
// }}
/>
样式
fab: {
position: "absolute",
padding: 20,
// height: "100%",
right: 0,
bottom: 100,
// color: "red"
},
【问题讨论】:
标签: css reactjs react-native floating-action-button react-native-paper