A patch release: RadioGroup and Checkbox labels can now be styled.
Fixed
-
RadioGroup — an item's label could not be recoloured.
classNameonRadioGroup.Itemstyles the pressable row, and React Native does not pass a text colour down from a view, sotext-blackthere never reached the label: it kepttext-foreground, which is white on a dark theme. Items now takelabelClassNameanddescriptionClassName, merged over the defaults. (#227, reported by @yashDahiwale)<RadioGroup.Item value="card" label="Card" className="bg-white" labelClassName="text-black" />
-
Checkbox — the same gap, closed the same way:
labelClassNameanddescriptionClassName.
Docs
- RadioGroup, Checkbox — a "Styling the label" example, and the props table now says what
classNamereaches.
Upgrading
npm install panelui-native@0.103.2Nothing changes for existing code. The new props are optional.
This version was published by hand while CI is unavailable, so it carries no npm provenance attestation.
Full changelog: v0.103.1...v0.103.2