fix: Buttons shadow (#195)

This commit is contained in:
Ahmed Elhanafy
2017-10-24 10:50:43 +02:00
committed by Ferran Negre
parent 3410a6b5d4
commit 8ce0a18b7f

View File

@@ -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,
]}
/>