Skip to content

Commit 2f9d2c8

Browse files
committed
Android styling bug is fixed
1 parent 36655b4 commit 2f9d2c8

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

lib/src/RadioButton.style.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import {
22
DEFAULT_SIZE_MULTIPLIER,
3-
DEFAULT_OUTER_BORDER_WIDTH_MULTIPLIER
3+
DEFAULT_OUTER_BORDER_WIDTH_MULTIPLIER,
44
} from "./utils/constants";
55

6-
export const isHorizontal = horizontal => ({
6+
export const isHorizontal = (horizontal) => ({
77
flexDirection: horizontal ? "column" : "row",
88
});
99

1010
export const innerStyle = (size, innerColor) => ({
1111
width: size,
1212
height: size,
1313
borderRadius: size / 2,
14-
backgroundColor: innerColor
14+
backgroundColor: innerColor,
1515
});
1616

1717
export const outerStyle = (size, outerColor) => ({
@@ -20,25 +20,25 @@ export const outerStyle = (size, outerColor) => ({
2020
width: size + size * DEFAULT_SIZE_MULTIPLIER,
2121
height: size + size * DEFAULT_SIZE_MULTIPLIER,
2222
borderRadius: (size + size * DEFAULT_SIZE_MULTIPLIER) / 2,
23-
borderWidth: size * DEFAULT_OUTER_BORDER_WIDTH_MULTIPLIER
23+
borderWidth: size * DEFAULT_OUTER_BORDER_WIDTH_MULTIPLIER,
2424
});
2525

26-
export const transformStyle = springValue => ({
27-
transform: [{ scale: springValue }]
26+
export const transformStyle = (springValue) => ({
27+
transform: [{ scale: springValue }],
2828
});
2929

3030
export const textStyle = (textColor, innerColor, fontSize) => ({
3131
fontSize,
32-
color: textColor || innerColor
32+
color: textColor || innerColor,
3333
});
3434

35-
export const textContainer = horizontal => ({
36-
marginTop: horizontal && 8,
37-
marginLeft: horizontal || 8
35+
export const textContainer = (horizontal) => ({
36+
marginTop: horizontal ? 8 : 0,
37+
marginLeft: horizontal ? 0 : 8,
3838
});
3939

4040
export default {
4141
center: {
4242
alignItems: "center",
43-
}
43+
},
4444
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-animated-radio-button",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Fully customizable animated radio button for React Native",
55
"keywords": [
66
"bouncy",

0 commit comments

Comments
 (0)