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.
Steps to Reproduce
- Apply
className="line-clamp-1" (or line-clamp-2, etc.) to a React Native Text component
- Run on iOS or Android
- Observe the text renders in full — no truncation occurs
Snack or Repository Link
https://github.com/rixuanzheng/uniwind-line-clamp-repro
Uniwind version
1.1.1
React Native Version
0.81.5
Platforms
iOS, Android
Expo
Yes
What happened?
line-clamp-1,line-clamp-2, etc. have no visible effect when applied to a React NativeTextcomponent viaclassName. The text renders in full without any truncation.The class resolves correctly to
{ WebkitLineClamp: N }in the style object (visible viauseResolveClassNames), but that value is never forwarded tonumberOfLineson the nativeTextcomponent. This worked as expected in the free version of Uniwind — the regression appears to have been introduced in Uniwind Pro.Steps to Reproduce
className="line-clamp-1"(orline-clamp-2, etc.) to a React NativeTextcomponentSnack or Repository Link
https://github.com/rixuanzheng/uniwind-line-clamp-repro
Uniwind version
1.1.1
React Native Version
0.81.5
Platforms
iOS, Android
Expo
Yes