package expo.modules.image.svg /** * Substitutes CSS custom properties — `var(--name)` and `var(--name, fallback)` — in an SVG * document with caller-provided values, before the document is handed to a parser. * * Rewriting the source text, rather than asking the renderer to resolve the variables, keeps this * independent of what the renderer supports. AndroidSVG has a CSS selector engine but no support * for custom properties, and Apple's CoreSVG has neither, so neither platform could resolve * `var()` on its own. * * Substitution happens only inside quoted attribute values and `