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

Function normalizeStyle

src/StyleNormalizer/normalizeStyle.js:35–48  ·  view source on GitHub ↗
(style)

Source from the content-addressed store, hash-verified

33}
34
35export default function normalizeStyle(style) {
36 if (_.isArray(style)) {
37 return _.reduce(
38 style,
39 (normalizedStyle, val) => ({
40 ...normalizedStyle,
41 ...normalize(val),
42 }),
43 {},
44 );
45 }
46
47 return normalize(style);
48}

Callers 2

resolveStyleFunction · 0.85
resolveStyleMethod · 0.85

Calls 1

normalizeFunction · 0.85

Tested by

no test coverage detected