Skip to main content

ExportPrivateKeyButton

Renders a button that allows the user to export their wallet’s private key. Only works with email and phone signers. Will not render for passkey or external wallet signers.

Props

appearance
UIConfig
Optional appearance configuration for styling the export button.

Usage

import { ExportPrivateKeyButton } from "@crossmint/client-sdk-react-native-ui";
import { View, Text } from "react-native";

function WalletSettings() {
    return (
        <View>
            <Text>Export Private Key</Text>
            <ExportPrivateKeyButton
                appearance={{
                    colors: { border: "#e2e8f0" },
                    borderRadius: "12px",
                }}
            />
        </View>
    );
}
Note: Only works with email and phone signers. Will not render for passkey or external wallet signers.