-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
Version: 5.11.0
When using the RadioButton.Item and Checkbox.Item components, I cannot find a way to pass through props for the underlying component used for the labels, such as adjustsFontSizeToFit, allowFontScaling and numberOfLines.
This make it difficult to cater for longer label names, especially when dealing with different device sizes and OS text scaling options in Android. At present they are simply cut off, without any indication that the text continues.
Implementation options could include:
- Provide a
labelTextPropsprop, which would allow passing through props to the component, similar to the waylabelStyleis offered to pass through additional styles - Allow the current
labelprop to be either a string or a ReactNode so that users can override the implementation with something of their own creation