Fixed react example

This commit is contained in:
Christoph Oberhofer
2016-06-19 17:43:48 +02:00
parent 45331c0d8e
commit 308544c0dd
3 changed files with 11 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
static/
+9
View File
@@ -0,0 +1,9 @@
# Quagga meets React
This example uses webpack & babel to transpile/bundle the required files.
## How to run the example
```console
> npm install && webpack
```
+1 -1
View File
@@ -7,7 +7,7 @@ export default class Scanner extends React.Component {
this._scanner = Quagga this._scanner = Quagga
.decoder({readers: ['ean_reader']}) .decoder({readers: ['ean_reader']})
.locator({patchSize: 'medium'}) .locator({patchSize: 'medium'})
.fromVideo({ .fromSource({
target: '.overlay__content', target: '.overlay__content',
constraints: { constraints: {
width: 800, width: 800,