mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-15 10:28:13 +08:00
fix: fix background color of button
This commit is contained in:
@@ -118,7 +118,11 @@ class Button extends Component<DefaultProps, Props, State> {
|
||||
if (buttonColor) {
|
||||
backgroundColor = buttonColor;
|
||||
} else {
|
||||
backgroundColor = primary ? colors.primary : white;
|
||||
if (primary) {
|
||||
backgroundColor = colors.primary;
|
||||
} else {
|
||||
backgroundColor = dark ? black : white;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user