MetaMask
Implementation of the WalletConnect protocol. The dAppMeta
prop passed in the ThirdwebProvider
above will be used when connecting to the wallets to show your app's information.
import { metamaskWallet, ThirdwebProvider } from "@thirdweb-dev/react-native";
import { Ethereum } from "@thirdweb-dev/chains";
const App = () => {
const activeChain = Ethereum;
return (
<ThirdwebProvider
clientId="your-client-id"
activeChain={activeChain}
supportedChains={[activeChain]}
supportedWallets={[
metamaskWallet({
projectId: "your-wallet-connect-project-id", // optional but we recommend you get your own for production
}),
]}
>
<AppInner />
</ThirdwebProvider>
);
};