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

fix: added mock for `useKeyboardContext` #361

Closed kirillzyusko closed 6 months ago

kirillzyusko commented 6 months ago

📜 Description

Added mock for useKeyboardContext + AndroidSoftInputModes.

💡 Motivation and Context

useKeyboardContext and AndroidSoftInputModes is a part of official API of this library. However they are not exported from the library (so if you use them in unit-test -> this test will not pass and you will have to mock it manually).

So in this PR I'm adding them to mock and also adding a new unit test which assures that new mocks are actually present.

📢 Changelog

JS

🤔 How Has This Been Tested?

Tested manually via newly added test.

📸 Screenshots (if appropriate):

image

📝 Checklist

github-actions[bot] commented 6 months ago

📊 Package size report

Current size Target Size Difference
109973 bytes 109837 bytes 136 bytes 📈