-
-
Notifications
You must be signed in to change notification settings - Fork 839
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
App crashes when mounting <UserLocation />
(RCTMGLLocationModule.start got 0 arguments, expected 1)
#622
Comments
hey there, sorry for the report. Two questions:
Thanks |
Thanks, @ferdicus ! |
Any update on this - also did you try the current master? |
Received this error on a real device on v7.0.9, upgrade to v7.2.0 and the error persists. |
Sounds like you have a mismatch between JS and native code. Make sure to clean build and verify that both JS and native code is updated. |
After removing android/app/build directory, the latest version works fine on my Android emulator.
Currently I cannot reproduce the error. |
Good. It was a partial upgrade issue then. Closing. |
Describe the bug
App crashes when mounting
<UserLocation />
To Reproduce
Use
<UserLocation />
component as a child of<MapView />
component("@react-native-mapbox-gl/maps": "7.0.9")Expected behavior
Expected to show a dot on the device location
Screenshots
Versions (please complete the following information):
Additional context
RCTMGLLocationModule.start got 0 arguments, expected 1
It raises the error saying it hasn't passed 1 argument required.
And I am guessing the missing argument is
minDisplacement
, which has been recently added toRCTMGLLocationModule.java
.https://github.com/react-native-mapbox-gl/maps/pull/546/files#diff-44868fc4ad781b211fd026ed6a88bd38L73-R75
Are they related?
When using 7.0.8, it works fine.
The text was updated successfully, but these errors were encountered: