Skip to content

Commit 97a544f

Browse files
authored
Merge pull request #14 from ui-ninja/iconbar-touchable-opacity-minor
activeOpacity to 1
2 parents 1a89200 + e88653c commit 97a544f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-rating-element",
3-
"version": "5.1.5",
3+
"version": "5.3.0",
44
"description": "A simple rating library for react native supporting decimal point and custom icon set",
55
"main": "index.js",
66
"scripts": {

src/Rating/components/IconBar.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const IconBar = ({
2727
filled = false,
2828
}) => (
2929
<TouchableOpacity
30+
activeOpacity={1}
3031
onPress={() => {
3132
if (!readonly) {
3233
onIconTap(position + 1);
@@ -40,12 +41,7 @@ const IconBar = ({
4041
size={size}
4142
/>
4243
) : (
43-
<StyledIcon
44-
name={name}
45-
size={size}
46-
color={color}
47-
margin={margin}
48-
/>
44+
<StyledIcon name={name} size={size} color={color} margin={margin} />
4945
)}
5046
</TouchableOpacity>
5147
);

0 commit comments

Comments
 (0)