Skip to content

fix: KeyboardAwareScrollView loosing ref identity#1319

Merged
kirillzyusko merged 1 commit intomainfrom
fix/loosing-ref-identity
Feb 20, 2026
Merged

fix: KeyboardAwareScrollView loosing ref identity#1319
kirillzyusko merged 1 commit intomainfrom
fix/loosing-ref-identity

Conversation

@kirillzyusko
Copy link
Copy Markdown
Owner

@kirillzyusko kirillzyusko commented Feb 20, 2026

📜 Description

Fixing loosing ref identity for KeyboardAwareScrollView on RN 0.83+

💡 Motivation and Context

We were re-creating ref. However starting from RN 0.83 it's not allowed, see: #1317

In this PR we just extend existing ref with new method. This was a suggested fix and according to e2e pipeline it works and works well 🤞

Closes #1317

📢 Changelog

JS

  • inject new method into ref instead of re-creating it;

🤔 How Has This Been Tested?

Tested by e2e test.

📝 Checklist

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

@kirillzyusko kirillzyusko self-assigned this Feb 20, 2026
@kirillzyusko kirillzyusko added 🐛 bug Something isn't working KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component labels Feb 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📊 Package size report

Current size Target Size Difference
243731 bytes 243663 bytes 68 bytes 📈

@kirillzyusko kirillzyusko marked this pull request as ready for review February 20, 2026 17:55
@kirillzyusko kirillzyusko merged commit 76056c3 into main Feb 20, 2026
16 checks passed
@kirillzyusko kirillzyusko deleted the fix/loosing-ref-identity branch February 20, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working KeyboardAwareScrollView 📜 Anything related to KeyboardAwareScrollView component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

KeyboardAwareScrollView ref loses native identity on RN 0.83+, breaking measureLayout

1 participant