Skip to content
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

Toast can be invisible under the software keyboard #80

Open
rocketraman opened this issue Aug 30, 2023 · 1 comment
Open

Toast can be invisible under the software keyboard #80

rocketraman opened this issue Aug 30, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@rocketraman
Copy link

rocketraman commented Aug 30, 2023

Describe the bug
If the software keyboard is open when a toast is triggered, it is not shown. It seems likely that the toast is hidden under the keyboard.

This is more likely in banner mode so the toast is at the bottom of the screen, where the keyboard is as well.

To Reproduce
Steps to reproduce the behavior:

  1. Create a screen with a text box on it, and a button that triggers the toast.
  2. Open the keyboard by starting to type.
  3. Click the button.

Expected behavior
I would expect the toast to show above the keyboard, if it is visible.

Smartphone (please complete the following information):

  • Device: iPhone 13 Pro (tested in simulator with software keyboard open and real device)
  • OS: iOS 16.2
  • Browser N/A
  • Version [e.g. 22] 20C52

The obvious workaround is to have the button close the keyboard before triggering the toast.

@rocketraman rocketraman added the bug Something isn't working label Aug 30, 2023
@Bersaelor
Copy link

There is no way for an iOS app to show content on top of the software keyyboard that I know off.
So I don't think this is possible.

All the package could do is observe keyboardDidShowNotification and adjust the banner position accordingly.
Would make for a nice task and PR @rocketraman :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants