react-native-style-tachyons
Version:
functional, maintainable styling for react-native
49 lines (48 loc) • 1.08 kB
JavaScript
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.styles = exports.radii = void 0;
const lodash_1 = __importDefault(require("lodash"));
exports.radii = lodash_1.default.mapValues({
br0: 0,
br1: 0.125,
br2: 0.25,
br3: 0.5,
br4: 1,
br5: 2
}, (val) => ({ borderRadius: val }));
exports.styles = {
ba: {
borderWidth: 1
},
bt: {
borderTopWidth: 1
},
br: {
borderRightWidth: 1
},
bb: {
borderBottomWidth: 1
},
bl: {
borderLeftWidth: 1
},
"br--bottom": {
borderTopLeftRadius: 0,
borderTopRightRadius: 0
},
"br--top": {
borderBottomLeftRadius: 0,
borderBottomRightRadius: 0
},
"br--left": {
borderTopRightRadius: 0,
borderBottomRightRadius: 0
},
"br--right": {
borderTopLeftRadius: 0,
borderBottomLeftRadius: 0
}
};
;