AlertToast
AlertToast copied to clipboard
Toast can be invisible under the software keyboard
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:
- Create a screen with a text box on it, and a button that triggers the toast.
- Open the keyboard by starting to type.
- 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.
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 :)