kirillzyusko / react-native-keyboard-controller

Keyboard manager which works in identical way on both iOS and Android
https://kirillzyusko.github.io/react-native-keyboard-controller/
MIT License
1.54k stars 61 forks source link

refactor: remove replicas #358

Closed kirillzyusko closed 6 months ago

kirillzyusko commented 6 months ago

📜 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:

image

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

JS

🤔 How Has This Been Tested?

Tested manually on iPhone 15 Pro and Pixel 2.

📝 Checklist

github-actions[bot] commented 6 months ago

📊 Package size report

Current size Target Size Difference
109837 bytes 116043 bytes -6206 bytes 📉