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

[iOS] Keyboard disappears while user is in app switch #16005

Closed
UrosZivaljevic opened this issue Sep 19, 2017 · 1 comment
Closed

[iOS] Keyboard disappears while user is in app switch #16005

UrosZivaljevic opened this issue Sep 19, 2017 · 1 comment
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@UrosZivaljevic
Copy link

UrosZivaljevic commented Sep 19, 2017

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

  1. react-native -v: 0.48.3
  2. node -v: v6.9.4
  3. npm -v: 3.10.10

Then, specify:

  • Target Platform: iOS
  • Development Operating System: macOS
  • Build tools: Xcode

Steps to Reproduce

  1. Focus on TextInput (keyboard appears)
  2. Double tap home button and quickly switch to other app (e.g. Messages)
  3. Toggle keyboard in other app
  4. Again double tap home button, while in app-switch view, keyboard is missing in React Native app, leaving padding from KeyboardAvoidingView still there, making it look bad.
  5. Doesn't always happen, sometimes you need to try few times

Expected Behavior

Keyboard will stay visible while app is in app-switch view, or KeyboardAvoidingView will adjust it's padding back to normal, like when keyboard is not visible.

Actual Behavior

Keyboard disappears in app-switch view.

21907993_10212404549062327_527002499_o

Reproducible Demo

https://snack.expo.io/S1OLjDaYZ

Note: Test on device or xcode simulator preferably, it's a bit tricky to go to app-switch view in simulator on Snack website.

It might not always work when following reproduction steps, but please try few times. If keyboard is visible in React Native app, please try to switch to different app and close keyboard as quickly as possible, so app is still in background state.

@stale
Copy link

stale bot commented Nov 18, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Nov 18, 2017
@stale stale bot closed this as completed Nov 25, 2017
@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

1 participant