Skip to content

Keyboard.dismiss and TextInput.blur not working if used with FlatList #19978

@Elijen

Description

@Elijen

Environment

Environment:
OS: macOS 10.14
Node: 10.1.0
Yarn: 0.27.5
npm: 6.1.0
Watchman: 4.7.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-28.0.0.tar.gz => 0.55.4

Description

Keyboard.dismiss and TextInput.blur sometimes does not have any effect.

Reproducible Demo

https://snack.expo.io/@peller/keyboard-dismiss-bug

  1. Press TextInput.focus() button
  2. Manually focus the 1st or the 3rd input by tapping it
  3. TextInput.blur() or Keyboard.dismiss() buttons now won't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugComponent: FlatListComponent: TextInputRelated to the TextInput component.Issue: Author Provided ReproThis issue can be reproduced in Snack or an attached project.Platform: AndroidAndroid applications.StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions