Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: synchronize bottom padding with keyboard frame in `KeyboardAware…
…ScrollView` (#332) ## 📜 Description Synchronized bottom padding with keyboard frame in `KeyboardAwareScrollView`. ## 💡 Motivation and Context Original regression was introduced in #257 ([these](https://github.com/kirillzyusko/react-native-keyboard-controller/pull/257/files#diff-b4493213c8dc470b5ba251af896d133130cc8996cee1118525e4eba1f3aa993bL87-L88) code lines). I decided not animated bottom padding to potentially fix the issue described in #255 (comment) However such approach is causing unsynchronized animations in certain conditions and I'm not sure, that it actually fixes the problem described in comment above. So in this PR I'm reworking it again and bringing back animated transitions 👀 Closes #329 ## 📢 Changelog ### JS - added `currentKeyboardFrameHeight` variable; - update `currentKeyboardFrameHeight` variable in `onMove` handler; - use `currentKeyboardFrameHeight` for bottom padding in KASV. ## 🤔 How Has This Been Tested? Tested manually on iPhone 15 Pro + e2e tests. ## 📸 Screenshots (if appropriate): |Before|After| |-------|-----| |<video src="https://github.com/kirillzyusko/react-native-keyboard-controller/assets/22820318/a7e5e3d3-8ef0-4b69-8c21-2414b1899e91">|<video src="https://github.com/kirillzyusko/react-native-keyboard-controller/assets/22820318/bdd34dee-25bd-4491-8612-6048c88760bb">| ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
- Loading branch information