0.3.0 β’ Published 1 year ago
@webxauth/webxauth-ui-react-native v0.3.0
webxauth-ui-react-native
This TypeScript library is used within a vanilla React Native or Expo project to add web3 based authentication capabilities.
β Supported
- WalletConnect v1.0
- MetaMask
π¦ Installation
npm i @webxauth/webxauth-ui-react-native
π Usage
Import
import { AuthWebView, WebViewMessage } from '@webxauth/webxauth-ui-react-native';
Define callbacks https://github.com/webxauth/webXauth-ui-react-native/blob/b403873bb302f8914bc7d30b1275392bf93a7201/example/src/App.tsx#L7-L29
- Add React Native component https://github.com/webxauth/webXauth-ui-react-native/blob/b403873bb302f8914bc7d30b1275392bf93a7201/example/src/App.tsx#L32-L42
π³οΈ Pitfalls
onPostMessage
must returntrue
to allow callback information to be propagated. https://github.com/webxauth/webXauth-ui-react-native/blob/a96890c94c5ffdeea2c55f7dbe5b013612b8399c/src/utils/WebViewMessageBroker.ts#L38-L52
πΊοΈ Roadmap
- WalletConnect v2.0
ποΈ Maintainer
Developed and maintained by the folks at Bonuz.