react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

KeyboardTrackingView keeps offset when keyboard is hidden after back navigation

Open gentlee opened this issue 3 months ago • 1 comments

Description

KeyboardTrackingView keeps offset when keyboard is hidden after back navigation.

Related to

  • [x] Components
  • [ ] Demo
  • [ ] Docs
  • [ ] Typings

Steps to reproduce

  1. Open screen with KeyboardTrackingView (second) from another screen with KeyboardTrackingView (first)
  2. Open keyboard, see how KeyboardTrackingView is moved with the keyboard on the second screen.
  3. Go back to the first screen.

Expected behavior

Keyboard is closed when going back, and so do KeyboardTrackingView of the first screen.

Actual behavior

Keyboard is closed when going back, but KeyboardTrackingView is still in the center of the screen on the first screen.

More Info

Code snippet

Screenshots/Video

Image

Environment

  • React Native version: 0.71.7
  • React Native UI Lib version: 7.46.3

Affected platforms

  • [ ] Android
  • [x] iOS
  • [ ] Web

gentlee avatar Oct 03 '25 08:10 gentlee

I think there also should be a way to disable tracking when screen is not visible, moving view to closed state with/without animation.

gentlee avatar Oct 03 '25 12:10 gentlee

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 17 '25 22:12 stale[bot]