Commit b5fb835
authored
refactor: change conditional code in
## 📜 Description
Compare `OS` only with `ios` string.
## 💡 Motivation and Context
We want `KeyboardAvoidingView` to have `translate` specific behavior
only for iOS (because only this platform can smoothly animate instant
changes). Before we were comparing `OS` with `android` to make it
"android specific" behavior, but in reality it should be "non-iOS
behavior", so i'm flipping the condition in this PR.
Since we support only two platforms it shouldn't make any difference,
but for web which will work in the same way as android it makes a lot of
sense, because otherwise it will not be able to animate it properly.
## 📢 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
- flip `OS === "android"` into `OS !== "ios"` condition;
## 🤔 How Has This Been Tested?
Tested via this PR.
## 📝 Checklist
- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changedKeyboardAvoidingView (#1257)1 parent e5438be commit b5fb835
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
0 commit comments