mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-17 04:09:48 +08:00
fix: Buttons shadow (#195)
This commit is contained in:
committed by
Ferran Negre
parent
3410a6b5d4
commit
8ce0a18b7f
@@ -48,7 +48,7 @@ class Paper extends Component<void, Props, void> {
|
||||
render() {
|
||||
const { style, theme, ...restOfProps } = this.props;
|
||||
const flattenedStyles = StyleSheet.flatten(style) || {};
|
||||
const { elevation = 2 } = flattenedStyles;
|
||||
const { elevation } = flattenedStyles;
|
||||
|
||||
return (
|
||||
<View
|
||||
@@ -56,7 +56,7 @@ class Paper extends Component<void, Props, void> {
|
||||
style={[
|
||||
styles.paper,
|
||||
{ backgroundColor: theme.colors.paper },
|
||||
shadow(elevation),
|
||||
elevation && shadow(elevation),
|
||||
style,
|
||||
]}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user