Skip to content

Keyboard module is not listening keyboardWillShow on android #15387

@agrcrobles

Description

@agrcrobles

Is this a bug report?

yes

Environment

  1. react-native -v: latest
  2. platform: android

Steps to Reproduce

The following code on componentWillMount works on ios but doesn't work in android

this.keyboardWillShowListener = Keyboard.addListener(
  "keyboardWillShow",
  () => console.log("do something")
);

Expected Behavior

keyboardWillShow native event is triggered on android

Actual Behavior

It doesn't trigger so I had to use keyboardDidShow event instead.

Reproducible Demo

https://snack.expo.io/r1eRxoNvb

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