callstack / web3-cross-platform-lens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

web3-cross-platform-lens

This repository showcases how to build a modern cross-platform (web / iOS / Android) dApp on Lens Protocol with Expo, React Native for Web, wagmi and WalletConnect's Web3Modal

demo.gif

Requirements

  • Expo environment setup (Node.js, Git, Watchman)
  • A Lens Protocol profile
  • A Wallet Connect Cloud project ID
  • Expo Go app installed in your smartphone
  • One or more web3 wallets installed in your smartphone (e.g. MetaMask, Rainbow Wallet, Trust Wallet, etc)
  • One or more web3 wallets installed in your browser (e.g. MetaMask, Rainbow Wallet, Trust Wallet, etc)

How to run

  • Rename .env.example to .env and fill in your Wallet Connect Cloud project ID
  • yarn install

Mobile

  • yarn start
  • Open Expo Go app in your smartphone
  • If your smartphone is in the same network as your computer, the local dev server should appear as the first option. If it doesn't, use the app to scan the QR Code presented in the terminal

Web

  • yarn web
  • Open http://localhost:19006/

About


Languages

Language:TypeScript 98.5%Language:JavaScript 1.5%