Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sdk/connect/react-native.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ For example:
import { useSDK } from "@metamask/sdk-react"

function App() {
const { connect, terminate, account, chainId, ethereum } = useSDK()
const { account, chainId, ethereum, sdk } = useSDK()

// Connect to MetaMask
const connectWallet = async () => {
try {
await connect()
await sdk?.connect()
} catch (error) {
console.error("Failed to connect wallet:", error)
}
Expand All @@ -196,7 +196,7 @@ function App() {

// Disconnect wallet
const disconnectWallet = async () => {
await terminate()
await sdk?.terminate()
}

return (
Expand Down