Allow to pass additional params to KeyboardController.dismiss() method unintentionally.
💡 Motivation and Context
When we pass params unintentionally like onPress={KeyboardController.dismiss} then we will try to serialize big JS object to the native side, which eventually crash the application.
To avoid this I decided to wrap dismiss in additional function and always send empty params to a native function.
📜 Description
Allow to pass additional params to
KeyboardController.dismiss()
method unintentionally.💡 Motivation and Context
When we pass params unintentionally like
onPress={KeyboardController.dismiss}
then we will try to serialize big JS object to the native side, which eventually crash the application.To avoid this I decided to wrap
dismiss
in additional function and always send empty params to a native function.Closes https://github.com/kirillzyusko/react-native-keyboard-controller/issues/684
📢 Changelog
JS
addListener
/removeListener
methods fromKeyboardController
;dismiss
;KeyboardToolbar
;🤔 How Has This Been Tested?
Tested on CI.
📝 Checklist