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
Dark Mode Callouts #4959
Comments
Hi, thanks for reporting this! Unfortunately, there's no other way than to use the tooltip property. But what you can do is nesting a triangle in the Callout to serve as a pointer as in
|
I have done this but when a marker is tapped on the edge of the screen, the callout is not centered on the point, resulting in a marker that is offset from the actual point. I can’t program the map to center on the point before the callout appears because it results in the same behavior. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If the issue remains relevant, simply comment |
Summary
I would like to set the background color fo the callout for use in dark mode situations. I cannot seem to find a solution to either setting the background color or just using whatever the default styling is. I cannot use a tooltip because I need the pointer and it has weird behavior when on the edges of the display.
I cannot set the background color of the view inside because it just has a white border around it.
Reproducible sample code
Steps to reproduce
Use the callout example but use the above code as your Callout
Expected result
I expect the whole callouts color to change. I have not tested on android but this needs to look correct on both platforms...
Actual result
There is a white border or the callout is not centered when at edge of screen.
React Native Maps Version
1.7.1
What platforms are you seeing the problem on?
iOS (Apple Maps)
React Native Version
0.72.6
What version of Expo are you using?
SDK 48
Device(s)
All iOS, unsure about behavior on android
Additional information
No response
The text was updated successfully, but these errors were encountered: