react-native-ui-lib
react-native-ui-lib copied to clipboard
KeyboardTrackingView keeps offset when keyboard is hidden after back navigation
Description
KeyboardTrackingView keeps offset when keyboard is hidden after back navigation.
Related to
- [x] Components
- [ ] Demo
- [ ] Docs
- [ ] Typings
Steps to reproduce
- Open screen with
KeyboardTrackingView(second) from another screen withKeyboardTrackingView(first) - Open keyboard, see how
KeyboardTrackingViewis moved with the keyboard on the second screen. - 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
Environment
- React Native version: 0.71.7
- React Native UI Lib version: 7.46.3
Affected platforms
- [ ] Android
- [x] iOS
- [ ] Web
I think there also should be a way to disable tracking when screen is not visible, moving view to closed state with/without animation.
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.