11import {
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
1010export const innerStyle = ( size , innerColor ) => ( {
1111 width : size ,
1212 height : size ,
1313 borderRadius : size / 2 ,
14- backgroundColor : innerColor
14+ backgroundColor : innerColor ,
1515} ) ;
1616
1717export 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
3030export 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
4040export default {
4141 center : {
4242 alignItems : "center" ,
43- }
43+ } ,
4444} ;
0 commit comments