Skip to content

When going back in a native stack with a gesture on iOS, keyboard animations and the keyboard itself are not in sync #1082

@matthieugicquel

Description

@matthieugicquel

Describe the bug

Follow-up to this discussion

A video will be clearer to explain the bug:

keyboard-issue.mov

When tapping to go back, everything is fine (second go back in the video)
When using the gesture, this phantom keyboard is displayed (first and third go back in the video)
RNKC animates its StickyView as if the phantom keyboard was not here, but ends up in the wrong position

Repo for reproducing
https://github.com/matthieugicquel/rnkc-repro-stack

To Reproduce

  1. Open the keyboard by focusing the text input
  2. Tap "add screen to stack"
  3. Go back using a swipe gesture (slowly if you want to see what happens)
  4. See keyboard already there, and sticky view moving up

Expected behavior
Ideally: have all APIs (KeyboardStickyView, and I guess other included views and hooks) take this phantom keyboard into account and not report the keyboard opening/closing when in the context of the screen in question.

Smartphone

  • Device: iPhone 16 Pro
  • OS: iOS 26 (reproduced on 18 too)
  • RN version: See repro repo
  • RN architecture: Fabric
  • JS engine: Hermes
  • Library version: 1.18.4

Metadata

Metadata

Assignees

Labels

KeyboardStickyView 🩹Anything related to KeyboardStickyView componentrepro providedIssue contains reproduction repository/code🍎 iOSiOS specific🐛 bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions