Socket
Socket
Sign inDemoInstall

react-native-qrcode-scanner

Package Overview
Dependencies
542
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.4.1

3

index.js

@@ -150,3 +150,4 @@ 'use strict';

toValue: 1,
easing: Easing.inOut(Easing.quad)
easing: Easing.inOut(Easing.quad),
useNativeDriver: true
})

@@ -153,0 +154,0 @@ ]).start();

{
"name": "react-native-qrcode-scanner",
"version": "1.4.0",
"version": "1.4.1",
"description": "A QR code scanner for React Native.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -89,2 +89,3 @@ # react-native-qrcode-scanner

import QRCodeScanner from 'react-native-qrcode-scanner';
import { RNCamera } from 'react-native-camera';

@@ -102,3 +103,3 @@ class ScanScreen extends Component {

onRead={this.onSuccess}
flashMode={QRCodeScanner.Constants.FlashMode.torch}
flashMode={RNCamera.Constants.FlashMode.torch}
topContent={

@@ -190,4 +191,4 @@ <Text style={styles.centerText}>

propType: `QRCodeScanner.Constants.FlashMode`
default: `QRCodeScanner.Constants.FlashMode.auto`
propType: `RNCamera.Constants.FlashMode`
default: `RNCamera.Constants.FlashMode.auto`

@@ -198,6 +199,6 @@ **Flash modes**

- `QRCodeScanner.Constants.FlashMode.off` turns it off.
- `QRCodeScanner.Constants.FlashMode.on` means camera will use flash in all photos taken.
- `QRCodeScanner.Constants.FlashMode.auto` leaves your phone to decide when to use flash when taking photos, based on the lightning conditions that the camera observes.
- `QRCodeScanner.Constants.FlashMode.torch` turns on torch mode, meaning the flash light will be turned on all the time (even before taking photo) just like a flashlight.
- `RNCamera.Constants.FlashMode.off` turns it off.
- `RNCamera.Constants.FlashMode.on` means camera will use flash in all photos taken.
- `RNCamera.Constants.FlashMode.auto` leaves your phone to decide when to use flash when taking photos, based on the lightning conditions that the camera observes.
- `RNCamera.Constants.FlashMode.torch` turns on torch mode, meaning the flash light will be turned on all the time (even before taking photo) just like a flashlight.

@@ -204,0 +205,0 @@ #### `topContent`

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