Skip to content

TextInput crashes when autofocus is set to true #18069

Closed
@john1jan

Description

@john1jan

react-native: 0.53.0
react: 16.2.0

I am using this

<TextInput
        placeholder={this.props.placeholder}
        editable={this.props.editable}
        placeholderTextColor={this.props.placeholderTextColor}
        maxLength={this.props.maxLength}
        returnKeyType={this.props.returnKeyType}
        keyboardType={this.props.keyboardType}
        value={this.props.value}
        autoFocus={true}
        autoCapitalize={this.props.autoCapitalize}
        onChangeText={this.props.onChangeText}
        secureTextEntry={this.props.secureTextEntry}
        underlineColorAndroid={(this.props.error !== '' ? "red" : Colors.AQUA_ISLAND)}
        onSubmitEditing={this.props.onSubmitEditing}
/>

screenshot_20180223-173313

When I set autofocus to false there is no issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions