Type alias SelectUIProps<I>

SelectUIProps<I>: {
    modalSize: "compact" | "wide";
    onSelect: ((selectionData) => void);
    supportedWallets: WalletConfig[];
    theme: "dark" | "light";
    walletConfig: WalletConfig<I>;
}

Type Parameters

Type declaration

  • modalSize: "compact" | "wide"

    Size of the modal

    This is always compact on React Native

  • onSelect: ((selectionData) => void)
      • (selectionData): void
      • Call this function to "select" your wallet and render the screen for connecting the wallet

        Parameters

        • selectionData: any

          selectionData to be passed to connectUI's selectionData prop

        Returns void

  • supportedWallets: WalletConfig[]

    List of all supported wallets including your wallet.

    You can use this to conditionally render UI based on how many wallets are supported. For example: You can render a larger UI if only one wallet (your wallet) is supported.

  • theme: "dark" | "light"

    theme of the connect wallet modal

  • walletConfig: WalletConfig<I>

    WalletConfig object of your wallet

    you can use this get metadata of your wallet by doing walletConfig.meta

Generated using TypeDoc