gluestack-ui
gluestack-ui copied to clipboard
Popover on Android is not placed as expected
Description
On Web & iOS the Content of the Popover is positioned near the trigger. On Android it is positioned in the middle of the screen. If it is intended to be like this it would be great to have it dcumented :)
CodeSandbox/Snack link
No response
Steps to reproduce
- Build any app with gluestack
- Copy the popover example
- Open on android and see that the popover is in the middle
- open on ios and see the popover is next to the trigger element
gluestack-ui Version
1.1.3
Platform
- [X] Expo
- [ ] React Native CLI
- [ ] Next
- [ ] Web
- [X] Android
- [ ] iOS
Other Platform
No response
Additional Information
Workaround is to style the popover with flexbox but offset and placement are not working :(
@sem4phor Could you please provide the code for us? This would aid in gaining a better understanding of your issue, enabling us to reproduce it more effectively.
Sue i added a repository for reproduction here: https://github.com/sem4phor/gluestack-ui-1751
Just open android and play around with the PopoverDemo's offset and placement props :) (The code is copied from the popover demos of the docs)
Hey @sem4phor, Tried experimenting with the gluestack-ui Popover component here. And it works fine on Android.
@DaminiPandey Okay yes in a sandbox it seems to work thank you! Not sure why it is not working for us 🤷 I will close this issue then.