react-native-paper
react-native-paper copied to clipboard
Add Label text number of lines of the button
Introduce a new property to control the maximum number of lines displayed in the label text of buttons. This enhancement will improve text handling by allowing developers to set constraints on the label's line count, ensuring better UI adaptability and readability.
Key Features:
- Add a numberOfLines property to the button's label.
- Automatically truncate text with ellipsis if it exceeds the specified number of lines.
- Provide full control to developers for defining single-line or multi-line behavior.
- Ensure compatibility with existing button styles and layout constraints.
Hey @aravind3566, thank you for your pull request 🤗. The documentation from this branch can be viewed here.