The react-native document does not even have a monitoring document for whether it has been connected or disconnected, and it was not found in the demo. #2994
-
The react-native document does not even have a monitoring document for whether it has been connected or disconnected, and it was not found in the demo. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
hey @a943999733 👋 can you explain more what's your issue? And provide reproducible code. If you want to track the connection between a wallet and your dapp, you can use
Remember that if you reopen the app, it takes some seconds to restore the session again. You can read more here: https://docs.walletconnect.com/2.0/reactnative/walletconnectmodal/dapp-usage#usewalletconnectmodal |
Beta Was this translation helpful? Give feedback.
hey @a943999733 👋 can you explain more what's your issue? And provide reproducible code.
If you want to track the connection between a wallet and your dapp, you can use
isConnected
prop.const { isConnected } = useWalletConnectModal()
Remember that if you reopen the app, it takes some seconds to restore the session again.
You can read more here: https://docs.walletconnect.com/2.0/reactnative/walletconnectmodal/dapp-usage#usewalletconnectmodal