UNPKG

rn-custom-switch

Version:

Customizable switch for Android and iOS platform(s)

32 lines (29 loc) 578 B
// Image Styles export const imageView = (heightValue, widthValue) => { return { height: heightValue, width: widthValue, }; }; // Other Styles export const justView = (styleLabel, styleValue) => { return { [styleLabel]: styleValue, }; }; // Text Styles export const textView = ( sizeValue, weightValue, colorValue, alignValue, textTransformValue ) => { return { color: colorValue, fontSize: sizeValue, fontWeight: weightValue, textAlign: alignValue, textTransform: textTransformValue, }; };