connect wallet in react native #1676
Unanswered
usmanhashmis
asked this question in
Developer Support
Replies: 1 comment
-
@usmanhasmis Still need help to resolve this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`export default function Walletconnect() {
const connector = useWalletConnect();
const connectWallet = React.useCallback(() => {
try{
console.log("wallet");
console.log("return",connector.connect());
return connector.connect();
}catch(err){
console.log(err)
}
const killSession = React.useCallback(() => {
return connector.killSession();
}, [connector]);
return (
<>
{!connector.connected ? (
) : (
<>
{shortenAddress(connector.accounts[0])}
</>
)}
</>
);
}
`
When clicking a button(connect a wallet) then not open metamask wallet. connector.connect() not response any.Check screenshots
Beta Was this translation helpful? Give feedback.
All reactions