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

keyboardDidShow listener does not fire in 'horizontal' orientation #22305

Closed
neilzhengzx opened this issue Nov 16, 2018 · 5 comments
Closed

keyboardDidShow listener does not fire in 'horizontal' orientation #22305

neilzhengzx opened this issue Nov 16, 2018 · 5 comments
Labels
API: Keyboard Bug Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.

Comments

@neilzhengzx
Copy link

neilzhengzx commented Nov 16, 2018

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 23.02 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 9.8.0 - /usr/local/bin/node
Yarn: 1.6.0 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
Build Tools: 19.0.3, 19.1.0, 21.1.0, 21.1.1, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.3
API Levels: 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0

Description

when the app in horizontal, keyboardDidShow not work. when change to Vertical,its work.

Reproducible Demo

this.keyboardDidShow = Keyboard.addListener('keyboardDidShow', () => {
console.log('its show');
});

@react-native-bot

This comment has been minimized.

@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The "⏪Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@hramos
Copy link
Contributor

hramos commented Dec 14, 2018

Can you add more information? It's not clear from the description what the problem is. What were you expecting to happen, and how did the actual result deviate from those expectations?

@neilzhengzx
Copy link
Author

when the app in horizontal, Keyboard.addListener can't get callback.

@hramos hramos changed the title keyboardDidShow doesn't support 'horizontal' on android keyboardDidShow callback does not fire in 'horizontal' orientation Dec 18, 2018
@hramos hramos changed the title keyboardDidShow callback does not fire in 'horizontal' orientation keyboardDidShow listener does not fire in 'horizontal' orientation Dec 18, 2018
@hramos hramos removed the 🔶APIs label Jan 24, 2019
@hramos hramos removed the Bug Report label Feb 6, 2019
@dulmandakh
Copy link
Contributor

Hello there 👋 this issue doesn't have a repro (which means, a react-native init-ed project with the minimal changes that leads to creating the same issue you are reporting). Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code.

Because of this, we are going to close this issue - but if a repro is shared, we are happy

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API: Keyboard Bug Platform: Android Android applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants