_runNativeCommand called with wrong arguments
See original GitHub issueDescribe the bug
On Android I’m getting warning that TypeError: args.unshift is not a function
.
I investigated, and and found that NativeBridgeComponent
calls _runNativeCommand
with three arguments here in _runPendingNativeCommands
.
MapView
overrides _runNativeCommand
here and will treat nativeRef as args, which is wrong.
I’m using latest master branch.
To Reproduce
Not needed, as the bug us clearly in the code.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
- Platfrom: [e.g. Android, iOS]
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- SDK Version [e.g. 22]
- React Native Version [e.g. 0.59]
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
_runNativeCommand called with wrong arguments · Issue ...
On Android I'm getting warning that TypeError: args.unshift is not a function . I investigated, and and found that NativeBridgeComponent calls ...
Read more >Python: reason for TypeError with wrong number of arguments
NOTE: I understand why an error is raised for a call with the wrong number of arguments, I definitely want that!
Read more >Debugger output says an event was called with wrong number ...
I'm working in a brown field project (inherited code of questionable quality), an Azure website with a few workers. When debugging locally I ......
Read more >wrong number or types of arguments in call to X?
1 Answer 1 ... This: DECLARE TYPE studId_scholarshipModification IS RECORD(studentID studenti.id%TYPE, modificationPercentage NUMBER); TYPE ...
Read more >Error: Wrong number of arguments: (3 . 4), 2 - Reddit
I get an error for many packages saying: Error: Wrong number… ... (defmacro define-obsolete-function-alias ( obsolete-name current-name when &optional ...
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
Hi! maps/javascript/components/NativeBridgeComponent:64 it accepts the args, but args is not an array, it’s a similar structure and it doesn’t have unshift method so change the block to:
Yeah apologies the class work makes no difference. Yeah that’s the flow that II observed when I was debugging this the other day.
I went with a simple rename patch just like #272 which is running in production for us now.