Skip to content

Commit

Permalink
[SocialIcon] Fix boolean value for onLongPress
Browse files Browse the repository at this point in the history
  • Loading branch information
FredyC committed Jul 16, 2017
1 parent 9d0ff03 commit 47e1d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/social/SocialIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const SocialIcon = props => {
return (
<Component
underlayColor={light ? 'white' : colors[type]}
onLongPress={!disabled && (onLongPress || log)}
onLongPress={disabled ? null : (onLongPress || log)}
onPress={(!disabled || log) && (onPress || log)}
disabled={disabled || false}
style={[
Expand Down

0 comments on commit 47e1d72

Please sign in to comment.