New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-qrcode-scanner-screen

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-qrcode-scanner-screen

Customizable QR Code Scanner

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

React Native QR Code Scanner

A highly customizable QR Code scanner based on react-native-qrcode-scanner-view.

What I Changed ?

I had this issue and I didn't get any solution on this page. There is problem with scanBarStyle and somebody has recommended remove scanBarStyle property. I changed this property in original QR Scanner file instead of removing. Also there is problem with componentDidMount() and componentWillUnmount() functions. I fixed this problem with the following codes.

listener; componentDidMount() { listener = AppState.addEventListener("change", this.handleAppStateChange); } componentWillUnmount() { listener.remove();
this.rnCamera && this.rnCamera.pausePreview(); }


Features

  • Pure JS code
  • Support Android and iOS
  • Support React Native 0.60+
  • Support scan QR code, Bar code
  • Scanning interface can be customized

Props

PropTypeDefault
maskColorstring#0000004D
rectStyleobjectheight: 300,
width: 300,
borderWidth: 0,
borderColor: '#000000',
marginBottom: 0
cornerStyleobjectheight: 32,
width: 32,
borderWidth: 6,
borderColor: '#E65100'
cornerOffsetSizenumber0
isShowCornerbooltrue
scanBarStyleobjectmarginHorizontal: 8,
borderRadius: 2,
backgroundColor: '#E65100'
isShowScanBarbooltrue
scanBarAnimateTimenumber3000
scanBarAnimateReverseboolfalse
scanBarImageany
hintTextstring
hintTextStyleobjectcolor: '#fff',
fontSize: 14,
backgroundColor: 'transparent',
marginTop: 32
renderHeaderViewfunc-
renderFooterViewfunc-
onScanResultfunc-
scanIntervalnumber2000
torchOnboolfalse
userFrontboolfalse

Keywords

FAQs

Package last updated on 22 Jul 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc