-
-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: make mapboxMap property optional in map view accessor #3377
base: main
Are you sure you want to change the base?
fix: make mapboxMap property optional in map view accessor #3377
Conversation
@krystofcelba thanks much for looking into. My main concern is that with those fixes, we'll just skip some operations. Can you share a stack trace or anything regarding the original issue? |
I've the exact same issue on iOS with latest update. |
@Gp2mv3 can you reproduce the issue? Can you share a stack trace? |
Yes I did, here is the stacktrace (before applying this PR):
It's indeed in the accessor of mapboxMap for the getZoom() that the crashes occurs. Hope it helps ! |
Description
Hi, I have recently encoutered this crash caused by some race condition when the JS code wants to access the zoom but the mapboxMap is not initialized yet. So I have made this fix. I simply changed the
mapboxMap
getter ofRNMBXMapView
to optional.Checklist
CONTRIBUTING.md
yarn generate
in the root folder/example
app./example
)