# expo-barcode-scanner

> Allows scanning variety of supported barcodes both as standalone module and as extension for expo-camera. It also allows scanning barcodes from existing images.

Latest version **13.0.1** (published 2024-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install expo-barcode-scanner
pnpm add expo-barcode-scanner
yarn add expo-barcode-scanner
bun add expo-barcode-scanner
```

## Health

**Score 50/100 (C)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 13.0.1 |
| Published | 2024-04-23 |
| First published | 2018-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 139.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 52318 |
| Author | 650 Industries, Inc. |
| Maintainers | radoslawkrzemien, pkham, szdziedzic, tsapeta, wkozyra, ide, lukmccall, alanhughes, kadikraman, aleqsio, marklawlor, gabrieldonadel, simek, keith-kurak, christopherwalter, kbrandwijk, fiber-god, brentvatne, evanbacon, quinlanj, expoadmin, exponent, wschurman, bycedric, jonsamp, princefleaswallow, kudochien, jesseruder, sjchmiela, esamelson |
| Keywords | barcode, barcode-scanner, react-native, expo |

## Links

- npm: https://www.npmjs.com/package/expo-barcode-scanner
- Repository: https://github.com/expo/expo
- Homepage: https://docs.expo.dev/versions/latest/sdk/bar-code-scanner/
- Issues: https://github.com/expo/expo/issues
- npm.io page: https://npm.io/package/expo-barcode-scanner

## Dependencies (1)

- [expo-image-loader](https://npm.io/package/expo-image-loader.md) ~4.7.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 13.0.1 (latest) — 2024-04-23
- 14.0.1 (next) — 2024-10-22
- 14.0.0-canary-20241021-c4b5a93 (canary) — 2024-10-21
- 12.9.3 (sdk-50) — 2024-02-16
- 14.0.0 — 2024-10-22
- 14.0.0-canary-20241021-7aba813 — 2024-10-21
- 14.0.0-canary-20241018-ebd377a — 2024-10-18
- 14.0.0-canary-20241018-2a482e3 — 2024-10-18
- 14.0.0-canary-20241018-75a0b25 — 2024-10-18
- 14.0.0-canary-20241018-4f8243a — 2024-10-18
- 14.0.0-canary-20241018-f71b3e0 — 2024-10-18
- 14.0.0-canary-20241008-90b13ad — 2024-10-08
- 14.0.0-canary-20240927-ab8a962 — 2024-09-27
- 14.0.0-canary-20240912-1059f85 — 2024-09-12
- 14.0.0-canary-20240904-69100c1 — 2024-09-04
- … 92 more at https://npm.io/package/expo-barcode-scanner/versions

## README

<p>
  <a href="https://docs.expo.dev/versions/latest/sdk/bar-code-scanner/">
    <img
      src="../../.github/resources/expo-barcode-scanner.svg"
      alt="expo-barcode-scanner"
      height="64" />
  </a>
</p>

Allows scanning variety of supported barcodes both as standalone module and as extension for expo-camera. It also allows scanning barcodes from existing images.

# API documentation

- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/bar-code-scanner.mdx)
- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/bar-code-scanner/)

# Installation in managed Expo projects

For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/bar-code-scanner/).

# Installation in bare React Native projects

For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.

### Add the package to your npm dependencies

```
npx expo install expo-barcode-scanner
```

### Configure for iOS

Add `NSCameraUsageDescription` and `NSMicrophoneUsageDescription` key to your `Info.plist`:

```xml
<key>NSCameraUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to use the camera</string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow $(PRODUCT_NAME) to use the microphone</string>
```

Run `npx pod-install` after installing the npm package.

### Configure for Android

This package automatically adds the `CAMERA` permission to your app.

```xml
<!-- Added permissions -->
<uses-permission android:name="android.permission.CAMERA" />
```

# Contributing

Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).

---
_Source: https://npm.io/package/expo-barcode-scanner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
