Hi
I am new to Dfinity and building an application in expo (React native)+typescript. I am trying to do a simple call to internet identity (https://identity.ic0.app), but I get this error in the very first step:
ReferenceError: Can’t find variable: BigInt
Any ideas? Here i the code I have. ultimately my question is, how can I use internet identity in a react native app? Can I use simple http calls?
And if it turns out that BigInt is untenable, I’m open to abstracting the codebase to a Nat64 interface that can accept implementations other than BigInt to improve compatibility
I tried this. for BigInt adding this to the top of my code does not work(At least for expo) and it still givs the same error. I had to add this to the @dfinity module files directly, which would probabely break on each update would be nice to have it added in main branch, unless there is a reason not to.
I added it to this file:
…\node_modules \ @dfinity\agent\lib\cjs\agent\http\transforms.js