Parameters
The maximum number of lines. If not specified, removes any existing line limit.
Limits the number of lines that text can occupy.
.lineLimit(lines?: number): Component;
Text("This is a very long text that will be truncated to one line")
.lineLimit(1)
Text("This is a longer text that can span up to three lines before being truncated")
.lineLimit(3)
Text("This text has no line limit")
.lineLimit()