n4kz / react-native-material-textfield

Material textfield
Other
901 stars 831 forks source link

Adds prop inputStyle #316

Open Jaredude opened 3 years ago

Jaredude commented 3 years ago

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)