Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds prop inputStyle #316

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Adds prop inputStyle #316

wants to merge 1 commit into from

Conversation

Jaredude
Copy link

inputStyle is spread first, allowing the fixed props of fontSize, baseColor, textColor, disabled, multiline to override
This allows for all TextStyleProps to be supported (e.g. textAlign) by the TextInput componant.
using textAlign as an example: it's determined by I18nManager in styles. This PR allows flexibility for a non-RTL environment to include textAlign: 'right' fields (useful for currency and accounting)

inputStyle is spread first, allowing the fixed props of fontSize, baseColor, textColor, disabled, multiline to override
This allows for all TextStyleProps to be supported (e.g. textAlign) by the TextInput componant.
using textAlign as an example: it's determined by I18nManager. This allows flexibility for a non-RTL environment to include textAlign: 'right' fields (useful for currency and acounting)
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