Skip to content

Android - KeyboardAvoidingView - Switching to vertical toolbar leaves the bottom padding #1109

@athmsenable

Description

@athmsenable

Describe the bug
I am using the KeyboardAvoidingView with padding behavior.
On Android 16, when using external-keyboard, or voice-typing, there is a small bubble (vertical toolbar) instead of the full-fledged keyboard. Switching to vertical toolbar from horizontal toolbar or keyboard leaves all/most of the bottom padding there.

Code snippet
<KeyboardAvoidingView behavior='padding'>...</KeyboardAvoidingView>

To Reproduce
Steps to reproduce the behavior:

  1. Use KeyboardAvoidingView on Android emulator (Android 16)
  2. Click on a text input. On screen keyboard is opened by default. Animation and padding work as expected.
  3. Start typing on external keyboard. This closes the on screen keyboard. And switches to a floating vertical toolbar. The bottom padding remains.
  4. It seems to remember the invalid padding when you blur and re-focus a TextInput.

Screenshots

initial state on screen keyboard opens switching to vertical toolbar when typing on external keyboard switching to voice typing or horizontal toolbar switching back to vertical toolbar

Metadata

Metadata

Assignees

Labels

KeyboardAvoidingView 🧪Anything related to KeyboardAvoidingView componentrepro providedIssue contains reproduction repository/code🐛 bugSomething isn't working🤖 androidAndroid specific

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions