0.9.1-alpha.17
Alpha@xaui/native@0.9.1-alpha.17
Patch Changes
-
863cc86:
TypographyandTextSpan— the first entry of the v1 coreTen roles, aligned with the reference implementation's
text:h1–h6,body,body-sm,body-xsandcode. Each role fixes size, line height, weight and family together, which is why there is nosizeprop and noweightprop — the combinations they allowed (a heading in a light weight, a caption in a display size) become unwritable rather than discouraged.TextSpanis a bare React NativeText. Nesting aTextinside aTextalready inherits font, size, weight and colour on both platforms, so a span needs no context to read and no role to resolve: the legacyTextSpanContextwas reimplementing the platform, and it is gone.Typographytherefore publishes no slot and does none of a span's work.Neither alignment nor truncation gets a prop.
textAlignis aTextStylekey that R14 already exposes, andnumberOfLinesis React Native's own — a prop of ours would be a second name for the same thing.