-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
: 0.48.3node -v
: v6.9.4npm -v
: 3.10.10
Then, specify:
- Target Platform: iOS
- Development Operating System: macOS
- Build tools: Xcode
Steps to Reproduce
- Focus on TextInput (keyboard appears)
- Double tap home button and quickly switch to other app (e.g. Messages)
- Toggle keyboard in other app
- 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. - 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.
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.
Metadata
Metadata
Assignees
Labels
StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.