Finish 0.2 with barcodescanner for username.
This commit is contained in:
parent
96cadc4f47
commit
4a2d45824f
3 changed files with 7 additions and 4 deletions
|
@ -51,7 +51,10 @@ function NoUserView({setUser}) {
|
|||
<Card.Text>
|
||||
<BarcodeScannerComponent
|
||||
style={{width: 'auto', height: 'auto'}}
|
||||
onUpdate={() => console.log("scanned")}
|
||||
onUpdate={(err, result) => {
|
||||
if (result) {
|
||||
setPreUser(result.text);
|
||||
}}}
|
||||
delay={1500}
|
||||
/>
|
||||
</Card.Text>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue