This app demonstrates use of WalletConnect to connect app to Metamask.
- Login though email and password.
- Click on Connect Wallet.
- User selects Metamask.
- User approves Metamask to connect to Paydapp..
- User can click on Paydapp Continnue to land to Paydapp home page.
- Connect Wallet
- Able to fetch transaction details.
- Able to Scan QR Code for wallet address to perform transactions.
- Phone Book like Display of Contacts to perform quick transaction.(Dummy Data)
WalletConnect
is used to connect decentralized wallet like Metamask with React Native expo
WalletConnect
uses node's built-in crypto package which is not available on iOS or Android.
In order to work around this we can use metro.config.js
to create aliases for different packages, this idea is from here.
This will allow us to use WalletConnect
directly from the expo
client without having to eject the application.
{
"accounts": [
"0xc8ee416ca70ba4b500dcc3fdf351b65a924eaded"
],
"chainId": 1,
"peerId": "cee46d16-9e4e-4177-9ffc-dfd11ee19ba4",
"peerMeta": {
"description": "MetaMask Mobile app",
"icons": [
"https://raw.githubusercontent.com/MetaMask/brand-resources/master/SVG/metamask-fox.svg"
],
"name": "MetaMask",
"ssl": true,
"url": "https://metamask.io"
}
}
A user can register or sign in with Firebase functions using email and password the whole authentication states are managed by redux-toolit
- Clone the repo.
- run
yarn install
. - run
npx expo start
. - Scan the QR Code.
- Run the application.