React Native Barcodescanner screenshot

React Native Barcodescanner

Author Avatar Theme by Ideacreation
Updated: 21 Nov 2016
537 Stars

A barcode scanner component for react native - not maintained anymore - use react-native-camera

Categories

Overview:

The react-native-barcodescanner is no longer maintained and users are advised to switch to react-native-camera for barcode scanning. The newer version 0.4.0 of react-native-camera includes barcode scanning functionality for android as well, offering a more robust implementation with support for both iOS and Android platforms.

Features:

  • Barcode and QR scanning: Utilizes zxing library for decoding barcodes.
  • Cross-platform support: Can be used for both iOS and Android platforms.
  • Properties customization: Options to define torch mode, camera type, and viewfinder styling.

Installation:

To install the react-native-camera library for barcode scanning, follow these steps:

  1. Link the library to your Android project by running react-native link.
  2. For manual linking:
    • Update android/settings.gradle and android/app/build.gradle.
    • Register the module in MainApplication.java.
    • Add the necessary import statement.
    • Include BarcodeScannerPackage to the exported package list in MainApplication.java#getPackages.

Summary:

The react-native-barcodescanner library is no longer maintained, and users are recommended to switch to react-native-camera for barcode and QR scanning functionality. The newer version of react-native-camera offers enhanced features, cross-platform support, and a more robust implementation for barcode scanning on both iOS and Android platforms. Users can customize properties such as torch mode, camera type, and viewfinder styling to suit their application’s requirements.