Skip to content

Android: Calling TextInput instance's focus() after keyboard is closed via back button/submit doesn't bring up keyboard #11979

Closed

Description

@aryo

Description

Calling focus() on a TextInput instance after keyboard is closed via Android back or submit/enter soft key doesn't bring keyboard back up.

Obviously, you can just tap on the TextInput itself to bring the keyboard back up, but the expected behavior of calling focus() should still apply.

Reproduction

<TouchableOpacity onPress={() => this.textInput.focus()}>
   <Text>Focus</Text>
</TouchableOpacity>
<TextInput ref={(component) => this.textInput = component}/>

Tap TextInput or TouchableOpacity to focus & bring up keyboard. Press back to dismiss keyboard. Tap TouchableOpacity -> no keyboard.

Additional Information

  • React Native version: 0.38
  • Platform: Android
  • Operating System: All

Activity

  1. hramos commented on May 25, 2017

    @hramos
    Contributor

    We're cutting down on the number of outstanding issues, in order to allow us to focus. I'm closing this issue because it has been open for over 60 days with no activity. If you think it should still be opened let us know why. PRs are always welcome.

  2. locked as resolved and limited conversation to collaborators on May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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