-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling KeyboardController.dismiss causes Range Error #684
Comments
Hello @vipulbhj
I'll look into what I can do here 👀 |
As a workaround you can pass |
Just looked at the PR, damn, never in my wildest dreams, would I have guessed it's this 😄 Thank you for your work 🙏🏼 |
…685) ## 📜 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 #684 ## 📢 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 undocumented `addListener`/`removeListener` methods from `KeyboardController`; - allow to pass any params to `dismiss`; - removed unnecessary functions nesting in `KeyboardToolbar`; ## 🤔 How Has This Been Tested? Tested on CI. ## 📝 Checklist - [x] CI successfully passed - [x] I added new mocks and corresponding unit-tests if library API was changed
@vipulbhj my pleasure 😊 I'll publish this fix in a new version - in a meantime you can use |
Describe the bug
I have a simple component,
This is wrapped in KeyboardProvider.
When I run this code, I get
The text was updated successfully, but these errors were encountered: