Skip to content

Commit 2149d96

Browse files
Update App.js
add roi support
1 parent 6745bc1 commit 2149d96

File tree

1 file changed

+3
-1
lines changed
  • BarcodeReaderSimpleSample

1 file changed

+3
-1
lines changed

BarcodeReaderSimpleSample/App.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class App extends React.Component {
7575
}}
7676
ref = {(ref)=>{this.scanner = ref}}
7777
overlayVisible={true}
78+
scanRegionVisible={true}
79+
scanRegion={region}
7880
>
7981
<Text style={{
8082
flex: 0.9,
@@ -90,4 +92,4 @@ class App extends React.Component {
9092
}
9193
}
9294

93-
export default App;
95+
export default App;

0 commit comments

Comments
 (0)