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

TextInput crashes when autofocus is set to true #18069

Closed
john1jan opened this issue Feb 23, 2018 · 1 comment
Closed

TextInput crashes when autofocus is set to true #18069

john1jan opened this issue Feb 23, 2018 · 1 comment
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@john1jan
Copy link

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

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue.

I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added no-template Ran Commands One of our bots successfully processed a command. labels Feb 23, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Feb 23, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants