Skip to content

fix: remove unnecessary code#1389

Merged
kirillzyusko merged 1 commit intomainfrom
fix/remove-unnecessary-code
Mar 23, 2026
Merged

fix: remove unnecessary code#1389
kirillzyusko merged 1 commit intomainfrom
fix/remove-unnecessary-code

Conversation

@kirillzyusko
Copy link
Copy Markdown
Owner

@kirillzyusko kirillzyusko commented Mar 22, 2026

📜 Description

Removed a fix with increased padding by +1.

💡 Motivation and Context

This code has been added in #342 But these changes became irrelevant after #1381 Since we started to change frame to full-height frame once per the animation we no longer have a condition described in #342

Additionally #332 is no longer reproducible, because in #797 we already were fighting with "ghost view" issue and fix for this problem also fixes #332 (just in a different way).

So to sum it up:

  • we no longer need to adjust spacer each frame;
  • we no longer need a fix with artificial spacer increasing 🤞

📢 Changelog

JS

  • don't apply +1 to keyboard spacer size in KeyboardAwareScrollView;

🤔 How Has This Been Tested?

Tested manually on Redmi Note 5 Pro (Android 9).

📸 Screenshots (if appropriate):

Current code Latest main (before PR changes) 1.20.7 release
telegram-cloud-document-2-5334807169311219281.mp4
telegram-cloud-document-2-5334807169311219284.mp4
telegram-cloud-document-2-5334807169311219289.mp4

📝 Checklist

  • CI successfully passed
  • I added new mocks and corresponding unit-tests if library API was changed

@kirillzyusko kirillzyusko self-assigned this Mar 22, 2026
@kirillzyusko kirillzyusko added refactor You changed the code but it didn't affect functionality KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component labels Mar 22, 2026
@kirillzyusko kirillzyusko marked this pull request as draft March 22, 2026 22:04
@github-actions
Copy link
Copy Markdown
Contributor

📊 Package size report

Current size Target Size Difference
305929 bytes 307041 bytes -1112 bytes 📉

@kirillzyusko kirillzyusko marked this pull request as ready for review March 23, 2026 10:35
@kirillzyusko kirillzyusko merged commit 9acd790 into main Mar 23, 2026
17 of 19 checks passed
@kirillzyusko kirillzyusko deleted the fix/remove-unnecessary-code branch March 23, 2026 10:36
kirillzyusko added a commit that referenced this pull request Mar 23, 2026
## 📜 Description

Re-generate iOS snapshots tests.

## 💡 Motivation and Context

After
#1389
we identified, that on certain iOS versions `KeyboardAwareScrollView`
snapshots were not matching previous results. It was only 1px, but it
looks like it was enough to fail testing.

In this PR I'm updating failed snapshots 🤞 

## 📢 Changelog

<!-- High level overview of important changes -->
<!-- For example: fixed status bar manipulation; added new types
declarations; -->
<!-- If your changes don't affect one of platform/language below - then
remove this platform/language -->

### E2E

- updated iOS snapshots;

## 🤔 How Has This Been Tested?

Tested via this PR.

## 📸 Screenshots (if appropriate):

<img width="657" height="193" alt="image"
src="https://github.com/user-attachments/assets/af33d30f-bb23-4928-9f10-1e72837878c2"
/>

## 📝 Checklist

- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component refactor You changed the code but it didn't affect functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant