Skip to content

Why does KeyboardController leave blank space or space of bottom after restarting the app? #993

@agusstingalvan

Description

@agusstingalvan

🐞 Describe the bug

When I wrap my app with KeyboardController, a blank space is added underneath the screen content. I've tried several approaches—switching library versions, wrapping KeyboardController in different places, and testing across screens—but the issue persists.

It displays fine when I first launch the app and interact with inputs. However, if I close and reopen the app, the blank space consistently appears again beneath the UI, as if the keyboard padding remains active even when the keyboard is dismissed.

Code snippet

Image

Image

To Reproduce

  1. Steps to reproduce the behavior:
  2. Wrap the app root with .
  3. Run the app on a physical Android device (e.g., Samsung A21).
  4. Interact with a screen that contains an input.
  5. Close and reopen the app.
  6. Observe the blank space added at the bottom of the screen.

Expected behavior
The screen should display correctly after reopening the app, without leaving any additional blank space or layout shift caused by the keyboard handler.

Screenshots

Image

Smartphone (please complete the following information):

  • OS: Android 11 (Samsung A21)
  • Desktop OS: Windows 11 (for development)
  • React Native version: 0.76.7
  • React Native architecture: Old architecture
  • Library versions:
    react-native-keyboard-controller: ^1.15.2
    react-native-screens: ^4.4.0

I check the #587
But dont found a solution

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions