Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackall3n/react-native-qrcode-camera
https://github.com/jackall3n/react-native-qrcode-camera
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackall3n/react-native-qrcode-camera
- Owner: jackall3n
- Created: 2018-11-27T13:57:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:37:26.000Z (about 1 year ago)
- Last Synced: 2024-12-10T06:47:31.512Z (29 days ago)
- Language: JavaScript
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native QRCode Camera [![npm version](https://badge.fury.io/js/react-native-qrcode-camera.svg)](http://badge.fury.io/js/react-native-qrcode-camera) [![npm downloads](https://img.shields.io/npm/dm/react-native-qrcode-camera.svg)](https://www.npmjs.com/package/react-native-qrcode-camera)
## Dependencies
[React Native Camera](https://www.npmjs.com/package/react-native-camera)## Installation
`npm i react-native-qrcode-camera --save`
or
`yarn add react-native-qrcode-camera`
Please follow the instructions on installing the [React Native Camera](https://github.com/react-native-community/react-native-camera#getting-started)
## Example Usage
```js
import React, { Component } from 'react';
import QRCodeCamera from 'react-native-qrcode-camera';class Camera extends Component {
onScan = event => {
console.log(event.rawData);
}
render() {
return (
);
}
}
```