Commit 7d2d0a2
authored
refactor: remove replicas (#358)
## 📜 Description
Removed replicas from the package.
## 💡 Motivation and Context
Initially when I started to work on this package I thought to add
replicas for iOS or Android if I can not derive values from a native
code. Turned out I can actually derive them, so replicas are kind of not
useful anymore.
These methods were not documented anywhere, but I see that people are
constantly trying to find these methods in documentation:
<img width="577" alt="image"
src="https://github.com/kirillzyusko/react-native-keyboard-controller/assets/22820318/1ad9b20a-2d33-40cf-9db3-5e5094826e93">
Since these methods were never a part of official API of this library -
I'm removing them 😎
Also this change can be considered as optimization, because I'm removing
code and thus reduce size of the package.
## 📢 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
- removed `replicas`
## 🤔 How Has This Been Tested?
Tested manually on iPhone 15 Pro and Pixel 2.
## 📝 Checklist
- [x] CI successfully passed
- [x] I added new mocks and corresponding unit-tests if library API was
changed1 parent 490b712 commit 7d2d0a2
16 files changed
Lines changed: 2 additions & 183 deletions
File tree
- FabricExample/src/components/KeyboardAnimation
- e2e/kit/assets
- android/e2e_emulator
- ios/iPhone 15 Pro
- example/src/components/KeyboardAnimation
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
12 | | - | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| |||
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 50 | | |
64 | 51 | | |
65 | 52 | | |
| |||
Loading
Loading
Loading
Loading
0 commit comments