v1.0.2 — cross-platform Button fixes
A patch release: the cross-platform Button fixes from #22. Every package ships at 1.0.2.
Merged via #23.
Fixed
- Native
Buttoncrashed on text labels. A string or number label rendered bare inside<Pressable>threw React Native's "Text strings must be rendered within a<Text>component". String / number labels are now wrapped in<Text>; element children pass through unchanged. (#22) - Native
Buttonlabel styles were unwired. The label's text styles (color,fontSize,fontWeight) were spread onto the<Pressable>, where React Native silently drops text-style props on aView. They now land on the label<Text>. (#22) Button intent="neutral"assumed agraytoken scale. Both renderers referenced$colors.gray.*, which only@usemotif/tokensguarantees — a hand-authoredcreateThemetheme need not define one.Buttonnow falls back to literal greys when the active theme defines nograyscale. (#22)