Skip to content

Commit

Permalink
Merge pull request #14 from ui-ninja/iconbar-touchable-opacity-minor
Browse files Browse the repository at this point in the history
activeOpacity to 1
  • Loading branch information
ui-ninja authored Jul 20, 2020
2 parents 1a89200 + e88653c commit 97a544f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-rating-element",
"version": "5.1.5",
"version": "5.3.0",
"description": "A simple rating library for react native supporting decimal point and custom icon set",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 2 additions & 6 deletions src/Rating/components/IconBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const IconBar = ({
filled = false,
}) => (
<TouchableOpacity
activeOpacity={1}
onPress={() => {
if (!readonly) {
onIconTap(position + 1);
Expand All @@ -40,12 +41,7 @@ const IconBar = ({
size={size}
/>
) : (
<StyledIcon
name={name}
size={size}
color={color}
margin={margin}
/>
<StyledIcon name={name} size={size} color={color} margin={margin} />
)}
</TouchableOpacity>
);
Expand Down

0 comments on commit 97a544f

Please sign in to comment.