heroims / react-native-web3-wallet Goto Github PK
View Code? Open in Web Editor NEWWeb3 Wallet in React Native (use ethers.js)
Web3 Wallet in React Native (use ethers.js)
Ethiers released version 5.7.0 a few hours ago. Creating a wallet under this version will throw an exception:
TypeError: undefined is not a function
Hi.
I followed your guideline on using your package, but I hit a roadblock at around the third stage.
Patch not working for "react-native-aes-crypto".
Here is the response after running the patch command...
`patch-package 6.4.7
Applying patches...
@ethersproject/[email protected] ✔
@ethersproject/[email protected] ✔
@ethersproject/[email protected] ✔
[email protected] ✔
[email protected] ✔
ERROR Failed to apply patch for package react-native-aes-crypto at path
node_modules/react-native-aes-crypto
This error was caused because react-native-aes-crypto has changed since you
made the patch file for it. This introduced conflicts with your patch,
just like a merge conflict in Git when separate incompatible changes are
made to the same piece of code.
Maybe this means your patch file is no longer necessary, in which case
hooray! Just delete it!
Otherwise, you need to generate a new patch file.
To generate a new one, just repeat the steps you made to generate the first
one.
i.e. manually make the appropriate file changes, then run
patch-package react-native-aes-crypto
Info:
Patch file: patches/react-native-aes-crypto+2.1.0.patch
Patch was made for version: 2.1.0
Installed version: 2.1.1
patch-package finished with 1 error(s).`
What data will be entered when attempting to send token contract
Hello everybody, please tell me how to create account on mainnet .Thank you !
Hi, I started to get "TypeError: node.derivePath is not a function" error when I create wallet. Patches and additional libraries are installed but I could not fix it? Do you have any advice?
It takes about 7 to 10 seconds to create a wallet without getting the keystore, but with the keystore it takes nearly a minute.
我的依赖
"dependencies": {
"@ethersproject/shims": "^5.7.0",
"@react-native-async-storage/async-storage": "^1.21.0",
"@react-navigation/bottom-tabs": "^6.5.11",
"@react-navigation/native": "^6.1.9",
"@react-navigation/native-stack": "^6.9.17",
"@reduxjs/toolkit": "^1.9.7",
"axios": "^1.6.1",
"ethers": "6.9.1",
"i18next": "^23.7.18",
"patch-package": "^8.0.0",
"react": "18.2.0",
"react-i18next": "^14.0.1",
"react-native": "0.73.2",
"react-native-aes-crypto": "3.0.1",
"react-native-gesture-handler": "^2.14.1",
"react-native-get-random-values": "^1.10.0",
"react-native-keychain": "^8.1.2",
"react-native-reanimated": "^3.6.1",
"react-native-safe-area-context": "^4.7.4",
"react-native-screens": "^3.27.0",
"react-native-scrypt": "1.2.1",
"react-native-vector-icons": "^10.0.2",
"react-native-web3-wallet": "github:heroims/react-native-web3-wallet#ether6.x",
"react-native-webview": "^13.6.2",
"react-redux": "^8.1.3",
"redux": "^4.2.1",
"redux-devtools-extension": "^2.13.9",
"redux-persist": "^6.0.0",
"redux-persist-filesystem-storage": "^4.2.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/plugin-transform-private-methods": "^7.23.3",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@pancakeswap/eslint-config-pancake": "^1.2.0",
"@react-native-community/eslint-config": "^3.2.0",
"@react-native/babel-preset": "0.73.19",
"@react-native/eslint-config": "0.73.2",
"@react-native/metro-config": "0.73.3",
"@react-native/typescript-config": "0.73.1",
"@tsconfig/react-native": "^3.0.2",
"@types/react": "^18.2.6",
"@types/react-native-vector-icons": "^6.4.17",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"metro-react-native-babel-preset": "0.76.8",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4"
},
该如何解决这个问题
If you use this versions it will work:
patch react-native-aes-crypto+2.1.0.patch
library [email protected]
this version will not and return the title error:
patch react-native-aes-crypto+2.1.1.patch
library [email protected]
I'm uploading the old patch version if anyone needs it and has no access anymore:
react-native-aes-crypto+2.1.0.patch
Hello everybody, Can anyone help me how to add tokens to my wallet ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.