xpoBarCodeScannerModule.scanFromURLAsync thrown an error

Please provide the following:

  1. SDK Version: 3.4.1
  2. Platforms(Android/iOS/web/all): all

I’m trying to make a scanner in React Native that takes an image file, scans it and returns data that contains in barcode. I’m using a BarCodeScanner extension from Expo SDK. It throws an error when I’m trying to use it. Error looks like:

An exception was thrown while calling `ExpoBarCodeScannerModule.scanFromURLAsync` with arguments `(
)`: -[__NSCFNumber length]: unrecognized selector sent to instance 0xe17787ebcc27c1d0
- node_modules/react-native/Libraries/BatchedBridge/NativeModules.js:104:55 in <unknown>
- node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:414:4 in __invokeCallback
- ... 4 more stack frames from framework internals

My code where I’m trying to use extension method:

file = require('./assets/image.jpg');
   BarCodeScanner.scanFromURLAsync(this. file).then(data => {
     }).catch(err => {

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.