application-amicale/native-base-theme/components/CheckBox.js
2019-06-25 22:20:24 +02:00

38 lines
1 KiB
JavaScript

// @flow
import variable from "./../variables/platform";
export default (variables /*: * */ = variable) => {
const checkBoxTheme = {
".checked": {
"NativeBase.Icon": {
color: variables.checkboxTickColor
},
"NativeBase.IconNB": {
color: variables.checkboxTickColor
}
},
"NativeBase.Icon": {
color: "transparent",
lineHeight: variables.CheckboxIconSize,
marginTop: variables.CheckboxIconMarginTop,
fontSize: variables.CheckboxFontSize
},
"NativeBase.IconNB": {
color: "transparent",
lineHeight: variables.CheckboxIconSize,
marginTop: variables.CheckboxIconMarginTop,
fontSize: variables.CheckboxFontSize
},
borderRadius: variables.CheckboxRadius,
overflow: "hidden",
width: variables.checkboxSize,
height: variables.checkboxSize,
borderWidth: variables.CheckboxBorderWidth,
paddingLeft: variables.CheckboxPaddingLeft - 1,
paddingBottom: variables.CheckboxPaddingBottom,
left: 10
};
return checkBoxTheme;
};