Skip to content

Attempting a fix for inconsistency in text gradient clamp logic between iOS and Android.#17

Draft
andrewkunkel wants to merge 1 commit into
0.81.4-discordfrom
akunkel/ios-clamp-fix
Draft

Attempting a fix for inconsistency in text gradient clamp logic between iOS and Android.#17
andrewkunkel wants to merge 1 commit into
0.81.4-discordfrom
akunkel/ios-clamp-fix

Conversation

@andrewkunkel

@andrewkunkel andrewkunkel commented Jul 17, 2026

Copy link
Copy Markdown

In the gradientMode prop we added to text gradient, there's a platform-specific discrepancy between how it interacts with gradientLength when the provided length is too short:

Android: The final color of the gradient is extended indefinitely.
iOS: The gradient starts over at the first color.

See Android left, iOS right.

image

This is an existing discrepancy in the platform gradient logic, not part of the code we introduced. Android natively supports both clamp and mirror modes, while on iOS clamp is the only mode and we had to add support for mirrored text gradients. But neither platform had text gradients out of the box.

…d, rather than abruptly looping the gradient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant