Skip to content

Conversation

@mo-fouad
Copy link

When using Variants with text-centre, text-left, or text-right, we have a Bug as it shows here

When using Variants with text-centre, text-left, or text-right, we have a Bug as it shows here  nativewind#232
Copilot AI review requested due to automatic review settings December 21, 2025 21:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug with Tailwind CSS text alignment classes (text-center, text-left, text-right) when used with variants in TextInput components. The issue was caused by an incorrect mapping configuration for the textAlign property.

Key Changes:

  • Updated the textAlign mapping in TextInput's style configuration from a boolean value to a string literal mapping

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