https://github.com/paraboly/react-native-barcode-scanner
https://github.com/paraboly/react-native-barcode-scanner
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paraboly/react-native-barcode-scanner
- Owner: Paraboly
- License: mit
- Created: 2020-07-06T14:51:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T04:44:49.000Z (over 3 years ago)
- Last Synced: 2024-04-29T03:20:52.755Z (about 2 years ago)
- Language: Java
- Size: 1.84 MB
- Stars: 19
- Watchers: 1
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/Paraboly/react-native-barcode-scanner)
[](https://www.npmjs.com/package/@paraboly/react-native-barcode-scanner)
[](https://www.npmjs.com/package/@paraboly/react-native-barcode-scanner)

[](https://opensource.org/licenses/MIT)
[](https://github.com/prettier/prettier)
# Installation
Add the dependency:
```ruby
npm i @paraboly/react-native-barcode-scanner
```
## Peer Dependencies
###### IMPORTANT! You need install them
```js
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-camera": ">= 3.31.0"
```
## iOS Installation
Do not forget to add this on Podfile
```swift
pod 'react-native-camera', path: '../node_modules/react-native-camera', subspecs: [
'TextDetector',
'FaceDetectorMLKit',
'BarcodeDetectorMLKit'
]
```
## Android Installation
In app -> build.gradle -> defaultConfig add this line
```gradle
missingDimensionStrategy 'react-native-camera', 'general'
```
# Usage
## Import
```js
import BarcodeScanner from "@paraboly/react-native-barcode-scanner";
```
## Navigation Usage
I suggest you that you the barcode scanner as a new Screen and make it a part of Navigation Service.
```js
```
## Author
FreakyCoder, kurayogun@gmail.com
## License
React Native Barcode Scanner is available under the MIT license. See the LICENSE file for more info.