-
Notifications
You must be signed in to change notification settings - Fork 272
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
Delay after keyboard dismissed #341
Comments
Edit: We updated to the latest version, and the Toast now correctly jumps back down when the keyboard is dismissed. However, it still starts up at the offset location and then jumps down, looks awkward Our code looks something like this
|
@calintamas I was able to fix this bug by updating the useSlideAnimation hook Wrapping translateY with
|
Is your feature request related to a problem? Please describe.
I'm always frustrated when the Toast is triggered near the same time as the keyboard is dismissed. The Toast tends to hang up at the keyboard offset position even after the Keyboard has gone away
Describe the solution you'd like
A prop to opt out of automatic keyboard handling.
isKeyboardAware: boolean
would be greatDescribe alternatives you've considered
Currently we have to
setTimeout
with a 600ms delay so the Toast will wait until the Keyboard is goneAdditional context
Thanks for the component! Works great besides the keyboard issue
The text was updated successfully, but these errors were encountered: