Skip to content

Commit 3d9be2c

Browse files
ashayasmastermoo
authored andcommitted
Fix shadow style on Android (#215)
1 parent d4dbbea commit 3d9be2c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ActionButton.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,12 @@ export default class ActionButton extends Component {
188188
: { paddingHorizontal: this.props.offsetX, zIndex: this.props.zIndex };
189189

190190
return (
191-
<View style={parentStyle}>
191+
<View style={[
192+
parentStyle,
193+
!this.props.hideShadow && shadowStyle,
194+
!this.props.hideShadow && this.props.shadowStyle
195+
]}
196+
>
192197
<Touchable
193198
background={touchableBackground(
194199
this.props.nativeFeedbackRippleColor,
@@ -204,11 +209,7 @@ export default class ActionButton extends Component {
204209
onPressOut={this.props.onPressOut}
205210
>
206211
<Animated.View
207-
style={[
208-
wrapperStyle,
209-
!this.props.hideShadow && shadowStyle,
210-
!this.props.hideShadow && this.props.shadowStyle
211-
]}
212+
style={wrapperStyle}
212213
>
213214
<Animated.View style={[buttonStyle, animatedViewStyle]}>
214215
{this._renderButtonIcon()}

0 commit comments

Comments
 (0)