anyone got a a certificate reader (eudgc, eudcc) up and running in Expo? The QR code reader is the easy part (example with Webview), but so far I did not get any of the Github decoding examples to run within Expo Snack.
Mostly dependencies won’t load, won’t be found, they need need basic stuff like Buffer, crypto or BigInt. Below some examples. I already played around further, tried to replace some of the multiple decrypting libraries (base45, zlib, cbor), but did not succeed.
Any snack that works to decode and validate the certificates in Expo Snack?
TypeError: undefined is not an object (evaluating ‘_eudgc.EuDgc.parse’)
ReferenceError: Can’t find variable: Buffer
Cannot resolve module crypto after installing it as a dependency
Unable to resolve module ‘module://zlib_bindings.js’
Won’t even resolve dependencies
Is there a particular reason you want to use snack for this?
It looks like all of those require custom native code that won’t work in a snack. But you might be able to get them to work using EAS Build.
Good question. I am just used to developing my tiny apps within Expo Snack.
covidpass-org/covidpass (Snack) (Table-Snack)
Finally a working decoder
Next step is validation…