Commit 76056c3
authored
fix:
## 📜 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
<!-- 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 -->
### JS
- inject new method into ref instead of re-creating it;
## 🤔 How Has This Been Tested?
Tested by e2e test.
## 📝 Checklist
- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changedKeyboardAwareScrollView loosing ref identity (#1319)1 parent 6c25251 commit 76056c3
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
501 | 503 | | |
502 | | - | |
503 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
504 | 507 | | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
505 | 512 | | |
506 | 513 | | |
507 | 514 | | |
| |||
0 commit comments