MCPcopy Create free account
hub / github.com/shoutem/theme / constructor

Method constructor

src/StyleNormalizer/StyleNormalizer.js:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 */
11export default class StyleNormalizer {
12 constructor() {
13 this.normalizers = {};
14 this.createNormalizers('margin', [HORIZONTAL, VERTICAL, SIDES]);
15 this.createNormalizers('padding', [HORIZONTAL, VERTICAL, SIDES]);
16 }
17
18 createNormalizers(prop, shorthands, suffix = '') {
19 shorthands.forEach(shorthand => {

Callers

nothing calls this directly

Calls 1

createNormalizersMethod · 0.95

Tested by

no test coverage detected