react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

Add Label text number of lines of the button

Open aravind3566 opened this issue 1 year ago • 1 comments

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.

aravind3566 avatar Nov 19 '24 02:11 aravind3566

Hey @aravind3566, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

callstack-bot avatar Nov 19 '24 02:11 callstack-bot