Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-barcode-scanner

Package Overview
Dependencies
Maintainers
18
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-barcode-scanner - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0-rc.0

2

build/BarCodeScanner.d.ts

@@ -91,3 +91,3 @@ import PropTypes from 'prop-types';

onObjectDetected: (callback?: BarCodeScannedCallback | undefined) => ({ nativeEvent, }: BarCodeEventCallbackArguments) => void;
convertNativeProps(props: BarCodeScannerProps): any;
convertNativeProps(props: BarCodeScannerProps): import("lodash").Dictionary<any>;
convertProp(value: any, key: string): any;

@@ -94,0 +94,0 @@ }

import { UnavailabilityError } from '@unimodules/core';
import mapValues from 'lodash.mapvalues';
import mapValues from 'lodash/mapValues';
import PropTypes from 'prop-types';

@@ -4,0 +4,0 @@ import React from 'react';

{
"name": "expo-barcode-scanner",
"version": "4.0.0",
"version": "5.0.0-rc.0",
"description": "Allows scanning variety of supported barcodes both as standalone module and as extension for expo-camera. It also allows scanning barcodes from existing images.",

@@ -40,3 +40,3 @@ "main": "build/BarCodeScanner.js",

"dependencies": {
"lodash.mapvalues": "^4.6.0",
"lodash": "^4.6.0",
"prop-types": "^15.6.0"

@@ -47,3 +47,3 @@ },

},
"gitHead": "8413e821076a2eca36b302e68dd628ce2e1f591a"
"gitHead": "211a7a3ce4007e7aa10ccf6efac4b5333ec31d0a"
}

@@ -14,3 +14,3 @@ # expo-barcode-scanner

For bare React Native projects, you must ensure that you have [installed and configured the `@unimodules/core` package](https://github.com/unimodules/core) before continuing.
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing.

@@ -25,35 +25,10 @@ ### Add the package to your npm dependencies

Add the dependency to your `Podfile` and then run `pod install`.
Run `pod install` in the ios directory after installing the npm package.
```ruby
pod 'EXBarCodeScanner', path: '../node_modules/expo-barcode-scanner/ios'
```
### Configure for Android
1. Append the following lines to `android/settings.gradle`:
No additional set up necessary.
```gradle
include ':expo-barcode-scanner'
project(':expo-barcode-scanner').projectDir = new File(rootProject.projectDir, '../node_modules/expo-barcode-scanner/android')
```
2. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```gradle
api project(':expo-barcode-scanner')
```
3. In `MainApplication.java`, import the package and add it to the `ReactModuleRegistryProvider` list:
```java
import expo.modules.barcodescanner.BarCodeScannerPackage;
```
```java
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(Arrays.<Package>asList(
// Your other packages will be here
new BarCodeScannerPackage()
), Arrays.<SingletonModule>asList());
```
# Contributing
Contributions are very welcome! Please refer to guidelines described in the [contributing guide]( https://github.com/expo/expo#contributing).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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