Skip to content

Instantly share code, notes, and snippets.

@markjenkins
markjenkins / Barcode handling.js
Last active Jul 10, 2021 — forked from alexwebr/Barcode handling.js
Code snippet from MB Vaccine App
View Barcode handling.js
}, u.default.createElement(s.Camera, {
onBarCodeScanned: R ? function(t) {
var l, o, u, c, s, p, y;
return n.default.async(function(v) {
for (;;) switch (v.prev = v.next) {
case 0:
return l = t.type, o = t.data, v.next = 3, n.default.awrap(f.getNetworkStateAsync());
case 3:
if (!1 !== (u = v.sent).isConnected && !1 !== u.isInternetReachable) {
v.next = 8;