Disconnect
- React
- React-Native
- TypeScript
- Unity
useDisconnect
Hook for disconnecting the currently connected wallet.
import { useDisconnect } from "@thirdweb-dev/react-native";
Usage
import { useDisconnect } from "@thirdweb-dev/react-native";
function App() {
const disconnect = useDisconnect();
return <button onClick={disconnect}>Disconnect</button>;
}
Disconnect
Connect any supported wallet connector to your app.
const walletAddress = await wallet.connect();