Skip to content

Commit 36655b4

Browse files
committed
Styling fixes
1 parent d0219aa commit 36655b4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/src/RadioButton.style.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
} from "./utils/constants";
55

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

1010
export const innerStyle = (size, innerColor) => ({
@@ -15,6 +15,7 @@ export const innerStyle = (size, innerColor) => ({
1515
});
1616

1717
export const outerStyle = (size, outerColor) => ({
18+
justifyContent: "center",
1819
borderColor: outerColor,
1920
width: size + size * DEFAULT_SIZE_MULTIPLIER,
2021
height: size + size * DEFAULT_SIZE_MULTIPLIER,
@@ -33,13 +34,11 @@ export const textStyle = (textColor, innerColor, fontSize) => ({
3334

3435
export const textContainer = horizontal => ({
3536
marginTop: horizontal && 8,
36-
left: horizontal || 8
37+
marginLeft: horizontal || 8
3738
});
3839

3940
export default {
4041
center: {
41-
alignSelf: "center",
4242
alignItems: "center",
43-
justifyContent: "center"
4443
}
4544
};

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.0.4",
3+
"version": "0.1.0",
44
"description": "Fully customizable animated radio button for React Native",
55
"keywords": [
66
"bouncy",

0 commit comments

Comments
 (0)