I would like to use the eudgc library to decode EU vaccination certificates with Expo. When using their few lines of sampe code in Expo Snack I get an error: Can’t find variable: BigInt
.
During problem research I found that BigInt is a new data type and it is problematic in React Native:
You are importing a package somewhere that requires BigInt as a dependency. For the most part ReactNative uses JavaScriptCore which may not have the support of BigInt.
And core-js states (all the way at the bottom):
ES BigInt can’t be polyfilled since it requires changes in the behavior of operators, you could find more info here. You could try to use JSBI.
How can I use libraries in Expo that require new “official” data types like BigInt
?