0.9.1-alpha.5
Alpha@xaui/native@0.9.1-alpha.5
Patch Changes
-
60011be: Add
Iconto@xaui/native/system.An icon is a third-party component, so a slot context never reaches it and every call site ends up computing the colour by hand.
Iconcloses that: three forms — a component throughas(sizeandcolorinjected, covering Lucide, Ionicons and vector-icons), a rawreact-native-svgelement as children, or an image throughsource— all resolving the same way. An explicit prop, else what the surrounding slot published throughIconContext, else the theme.For a raw SVG the resolved values win over the element's own
width,heightandcolor: one arriving from a design tool carries a baked-in size, and inheriting the slot's instead is the point of wrapping it.react-native-svgstays an optional peer — nothing here imports it, the raw-SVG form only clones an element the caller already made.