-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Android] app crashes on markers mount #291
Comments
I have the same issue. Did you find a workaround? |
The link below resolves a very similar issue. Also, from the looks of it your coordinate object {item} might be too busy. It should just have longitude and latitude. Thus, the 'user' key might be gumming things up, as well. Possibly you can store this info in another prop? Hope this helps! Stay awesome! -Matt |
Thanks @MatthewAwesome will try it! |
In my case i'm adding react native |
In my case, the Latitude and Longitude values passed to coordinate props were String and not Number. |
Order matters. First render markers. If the issue persists let me know. |
@alvelig What does order matters mean? I got this code and it throw the same error.
Error: Looking at the java source code, this error is this exception: |
I realized my mistake is that i added a within the . Not sure why, but it works after i removed it. |
Can someone please debug sydney's comment? I'm still experiencing the same error. |
Hello from the future: In case Android throws the same error and you are using a custom
|
@Peeeep This works, thanks for pointing out.. |
For anyone experiencing a similar issue recently, in my case, it happened when I passed an empty array to the |
Having a View inside my MapView caused this issue for me. Only taken 5 hours to figure this out :) |
Sad to hear, considering that I faced the same issue 7 years ago and I added the comment here in this post #291 (comment) |
Hi, when I mount a map, all works fine. But, when props on my map component updates and I create markers, app crashes. iOS version works fine, crashes only on Android:
My code looks like:
The text was updated successfully, but these errors were encountered: