ExpoBarCodeScannerView from NativeViewManagerAdapter isn't exported by expo-modules-core

  1. SDK Version: 47
  2. Platforms(Android/iOS/web/all): ios
  3. More details:
  • package.json file

    • “expo”: “~47.0.14”,
    • “expo-barcode-scanner”: “~12.1.0”,
  • NOTE: My source code does not have ios, android folder.

  • I add the script: import { BarCodeScanner } from ‘expo-barcode-scanner’;

  • when I run npx expo start in the terminal. then I got the issue as bellow

WARN The native view manager required by name (ExpoBarCodeScannerView) from NativeViewManagerAdapter isn’t exported by expo-modules-core. Views of this type may not render correctly. Exported view managers: .
ERROR TypeError: undefined is not an object (evaluating ‘_ExpoBarCodeScannerModule.default.BarCodeType’)
ERROR Invariant Violation: Failed to call into JavaScript module method AppRegistry.runApplication(). Module has not been registered as callable. Registered callable JavaScript modules (n = 11): Systrace, JSTimers, HeapCapture, SamplingProfiler, RCTLog, RCTDeviceEventEmitter, RCTNativeAppEventEmitter, GlobalPerformanceLogger, JSDevSupportModule, HMRClient, RCTEventEmitter.
A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native

Best regards and many thanks.
RichardNguyen.

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