Skip to content

Commit a0bd3a8

Browse files
fix bug
1 parent 5e14cb8 commit a0bd3a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

BarcodeReaderSimpleSample/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import BarcodeScanner from './BarcodeScanner';
66
import {DynamsoftBarcodeReader} from 'dynamsoft-capture-vision-react-native';
77

88
function HomeScreen({navigation}) {
9-
async () => {
9+
(async () => {
1010
// Initialize the license so that you can use full feature of the Barcode Reader module.
1111
try {
1212
await DynamsoftBarcodeReader.initLicense('DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9');
1313
} catch (e) {
1414
console.log(e);
1515
}
16-
};
16+
})();
1717

1818
return (
1919
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}>

BarcodeReaderSimpleSample/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@react-navigation/native": "^6.0.10",
1414
"@react-navigation/native-stack": "^6.6.2",
15-
"dynamsoft-capture-vision-react-native": "^1.1.1",
15+
"dynamsoft-capture-vision-react-native": "^1.1.2",
1616
"react": "17.0.2",
1717
"react-native": "0.65.0",
1818
"react-native-safe-area-context": "^4.2.5",

0 commit comments

Comments
 (0)