Skip to content

Commit 252aeff

Browse files
fix bug
1 parent f8a811c commit 252aeff

File tree

1 file changed

+1
-1
lines changed
  • BarcodeReaderSimpleSample

1 file changed

+1
-1
lines changed

BarcodeReaderSimpleSample/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class App extends React.Component {
4646

4747
async componentWillUnmount() {
4848
await this.reader.stopScanning()
49-
this.reader.removeResultListener()
49+
this.reader.removeAllResultListeners()
5050
}
5151

5252

0 commit comments

Comments
 (0)