1

I setup wallet connect following the docs https://docs.walletconnect.com/1.0/quick-start/dapps/react-native , it working , but linking to metamask or other wallet , not show enter image description here end this is my code :

export default function WalletConnectExperience() {
  const connector = useWalletConnect();
  console.log(connector.connected);
  const connectWallet = React.useCallback(() => {
    console.log(connector.connect())
    return connector.connect();
  }, [connector]);

  const killSession = React.useCallback(() => {
    return connector.killSession();
  }, [connector]);

  return (
    <>
      {!connector.connected ? (
        <Button onPress={(connectWallet)} label="Connect a wallet" />
      ) : (
        <>
          <Text>{shortenAddress(connector.accounts[0])}</Text>
          <Button onPress={killSession} label="Log out" />
        </>
      )}
    </>
  );
}

, note when i click button connect : enter image description here I think , i do something wrong , please help me ! thanks you very much

Gia Hạo
  • 11
  • 2

0 Answers0