Skip to content

Style override for TextInput #1115

@dominictwlee

Description

@dominictwlee

Describe the feature

Passing down style props to the NativeTextInput component within TextInput. Something like inputStyles that would override the default styles.

style: [
styles.input,
!multiline || (multiline && height)
? { height: inputHeight }
: {},
paddingOut,
{
fontSize,
color: inputTextColor,
...font,
textAlignVertical: multiline && height ? 'top' : 'center',
},
],

Maybe put it at the end of the styles array here?

Motivation

I'd like to have full control and override styles if/when needed. For example, right now there isn't a feasible way to override the input text color or font weight when the input is disabled.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions