Skip to content

Line-Clamp-{N} Does Not Work in Uniwind Pro #526

Description

@rixuanzheng

What happened?

line-clamp-1, line-clamp-2, etc. have no visible effect when applied to a React Native Text component via className. The text renders in full without any truncation.

The class resolves correctly to { WebkitLineClamp: N } in the style object (visible via useResolveClassNames), but that value is never forwarded to numberOfLines on the native Text component. This worked as expected in the free version of Uniwind — the regression appears to have been introduced in Uniwind Pro.

Image

Steps to Reproduce

  1. Apply className="line-clamp-1" (or line-clamp-2, etc.) to a React Native Text component
  2. Run on iOS or Android
  3. Observe the text renders in full — no truncation occurs

Snack or Repository Link (Optional)

https://github.com/rixuanzheng/uniwind-line-clamp-repro

Uniwind version

1.1.1

React Native Version

0.81.5

Platforms

iOS, Android

Expo

Yes

Additional information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions