Skip to content

TexInput - textAlign={"start"} prop not working #15633

Closed
@iamhardik08

Description

@iamhardik08

I have been using TextInput .

As per the documentation textAlign enum('start', 'center', 'end')

Set the position of the cursor from where editing will begin.

I had made the following changes

<TextInput
ref="company"
autoCapitalize='none'
style={[styles.input,styles.formLabel,commonStyles.smallText]}
value={this.state.company}
underlineColorAndroid={'transparent'}
onChangeText={(text) => this.setState({company:text})}
textAlign={"start"}
/>

and getting this error

Error while updating property 'textAlign' in shadow node of type AndroidTextInput

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions