Socket
Socket
Sign inDemoInstall

react-native-modern-qrscanner

Package Overview
Dependencies
5
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-modern-qrscanner

A modern-designed and powerful QR code scanner for React Native with advanced features.


Version published
Maintainers
1
Created

Readme

Source

React Native Modern QR Scanner

A powerful and customizable QR code scanner component for React Native applications.

Features

  • Advanced QR code scanning capabilities using React Native Camera.
  • Customizable scanning viewfinder and overlay.
  • Supports both iOS and Android platforms.
  • Provides hooks for various QR code scanning events.

Installation

npm install react-native-modern-qrscanner

or

yarn add react-native-modern-qrscanner

Usage

Import ModernQRScanner and use it in your React Native application.

import { ModernQRScanner } from 'react-native-modern-qrscanner';

// Example usage
<ModernQRScanner
  onRead={(e) => console.log('QR code detected:', e)}
  // other props
/>

Props

  • onRead: Callback function invoked when a QR code is detected.
  • renderTopView: Custom render function for the top overlay view.
  • renderBottomView: Custom render function for the bottom overlay view.
  • rectHeight, rectWidth: Dimensions for the scanning area.
  • flashMode: Enable or disable the camera flash.
  • finderX, finderY: Position offsets for the scanning viewfinder.
  • ...and more.

Customization

You can customize the scanner viewfinder, overlay styles, and more using the available props.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome. Please read the contributing guide for more details.

Keywords

FAQs

Last updated on 28 Jan 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc