App crashes when mounting `<UserLocation />` (RCTMGLLocationModule.start got 0 arguments, expected 1)
See original GitHub issueDescribe 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):
- Platfrom: Android
- Device: Emulator Nexus 5X API 29 x86 (1080 × 1920: 420dpi) | | 3.9 GB
- OS: Android 10.0 (Google APIs) | x86
- SDK Version 28
- React Native Version “react-native”: “0.61.5”
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 to RCTMGLLocationModule.java
.
Are they related? When using 7.0.8, it works fine.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:7 (4 by maintainers)
Top Results From Across the Web
App crashes when mounting <UserLocation ... - GitHub
RCTMGLLocationModule.start got 0 arguments, expected 1. It raises the error saying it hasn't passed 1 argument required.
Read more >App crashing immediately on start up after upgrading to iOS12.
Running fine in simulator but crashes in device. No crash logs recorded. In line error shown after launching the app Thread 1: EXC_BAD_ACCESS...
Read more >Crashes | Android Developers
An Android app crashes whenever there's an unexpected exit caused by an unhandled exception or signal. An app that is written using Java...
Read more >Flutter app crashes on start - Found interface com.google ...
Suddenly the Flutter app started crashing on open. It was working earlier. Sharing the runtime crash log - Fatal Exception: java.lang.
Read more >Office Applications crash or cannot start - Microsoft Learn
Right-click ShownFirstRunOptin, and then click Modify. In the Value data box, type 1, and then click OK. On the File menu, click Exit...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Good. It was a partial upgrade issue then. Closing.