pushpender-singh-ap / react-native-scanner

A QR code & Barcode Scanner for React Native Projects. It supports React Native's new Fabric Native architecture and was created in Kotlin and Objective-C.
https://www.npmjs.com/package/@pushpendersingh/react-native-scanner
MIT License
54 stars 10 forks source link

ReactNativeScannerView" was not found in the UIManager #15

Closed deeps0903 closed 9 months ago

deeps0903 commented 9 months ago

Invariant Violation: requireNativeComponent: "ReactNativeScannerView" was not found in the UIManager.

pushpender-singh-ap commented 9 months ago

@deeps0903

  1. React native version
  2. @pushpendersingh/react-native-scanner version
  3. Are you using newArch?
  4. Please share the "npx react-native info" command output.
deeps0903 commented 9 months ago

@pushpender-singh-ap React native version -> "0.64.4" @pushpendersingh/react-native-scanner version -> "^1.1.0-beta.2" Are you using newArch? -> enable new architecture for android (by addig newArchEnabled=true in gradle.properties ) Please share the "npx react-native info" command output. -> Not Found :- ![Uploading Screenshot 2024-01-02 at 8.10.59 PM.png…]()

pushpender-singh-ap commented 9 months ago

In React Native, the introduction of 'newArch' came with version 0.68. However, your current version is 0.64. To leverage the new architecture, it's crucial to upgrade React Native to a minimum of version 0.70. Following the upgrade, ensure to enable the 'newArch' for both platforms. Once this is accomplished, you can seamlessly incorporate the functionality of the '@pushpendersingh/react-native-scanner' library by installing the stable 1.0.2 version of the library

deeps0903 commented 9 months ago

okay! Thanks

xiongxiongjiang commented 8 months ago

i'm using 0.72.0 and newArchEnabled=true,still report “Possible Unhandled Promise Rejection (id: 0): Invariant Violation: requireNativeComponent: "ReactNativeScannerView" was not found in the UIManager. Invariant Violation: requireNativeComponent: "ReactNativeScannerView" was not found in the UIManager.”

pushpender-singh-ap commented 8 months ago

@xiongxiongjiang Would you mind sharing a sample project with us? It would be immensely helpful for us to accurately diagnose and address the issue at hand.