react-native-serialport
react-native-serialport copied to clipboard
Malformed calls from JS: field sizes are different.
Hi I am testing this for the first time by trying to connect with an arduino Leonardo. I am using the example here
https://github.com/melihyarikkaya/react-native-serialport/wiki/Manual-Connection
and using react-native run-android on a Samsung Galaxy s10E, once the app is running I connect the arduino to the usb port on ty phone and I get the error shown in the images.
I installed this with
npm install --save react-native-serialport react-native link react-native-serialport
Here the logs

I fixed it with this solution #34
Change:
RNSerialport.getDeviceList(response => { ... })
to:
RNSerialport.getDeviceList().then(response => { ... })