DOCS

ThirdwebProvider

The <ThirdwebProvider /> component lets you control what networks you want users to connect to, what types of wallets can connect to your app, and the settings for the Thirdweb SDK .

function ThirdwebProvider<
  TChains extends Chain[] = Array<
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
    | {}
  >,
>(
  __namedParameters: PropsWithChildren<
    ThirdwebProviderProps<TChains>
  >,
): Element;

Example

You can wrap your application with the provider as follows:

import { ThirdwebProvider } from "@thirdweb-dev/react-native";

const App = () => {
  return (
    <ThirdwebProvider>
      <YourApp />
    </ThirdwebProvider>
  );
};

Parameters

Returns

type ReturnType = Element;