Skip to main content
.allowsTightening(isEnabled?: boolean): Component;

Parameters

isEnabled
boolean
Whether to allow text tightening. When true, text can compress character spacing to fit in available space before truncating. Defaults to true if not provided.

Support

Usage

Enable text tightening

Text("This is a long text that needs to fit")
    .frame({ width: 150 })
    .allowsTightening(true)

Disable text tightening

Text("Preserve exact spacing")
    .frame({ width: 100 })
    .allowsTightening(false)