Android gets Bigint error

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, react-native
Domain
mobile

Research direction

Start by reproducing the Android failure with the listed React Native 0.64.4 and TKey dependency versions, comparing it with the working iOS behavior. Trace the early initialization error associated with BigInt and verify that the Android app launches without the BigInt or AppRegistry errors.

Written by the indexing model from the issue text.

Description

When I use rKey on react native project. IOS works fine but Android gets Bigint error

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
 ERROR  ReferenceError: Can't find variable: BigInt
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. 
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native

Info:

   "@toruslabs/fetch-node-details": "=11.0.1",
    "@tkey/default": "^10.1.0",
    "@tkey/security-questions": "^10.1.0",
    "@tkey/share-serialization": "^11.0.1",
    "@tkey/share-transfer": "^11.0.1",
    "@tkey/service-provider-base": "^10.1.0",
    "@tkey/service-provider-torus": "^10.1.0",
    "@tkey/storage-layer-torus": "^10.1.0",
   "react": "17.0.2",
    "react-native": "0.64.4",

How to fix it

Dominant language
JavaScript
Stars
1
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MetaMask/tkey-react-native-example

All issues in MetaMask/tkey-react-native-example

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.