diff --git a/.changeset/seven-walls-deny.md b/.changeset/seven-walls-deny.md new file mode 100644 index 00000000000..d4512ff7cde --- /dev/null +++ b/.changeset/seven-walls-deny.md @@ -0,0 +1,5 @@ +--- +"@thirdweb-dev/react-native": patch +--- + +Deprecates magicLink in favor of embedded wallet diff --git a/packages/react-native/src/evm/wallets/wallets/MagicLink.ts b/packages/react-native/src/evm/wallets/wallets/MagicLink.ts index 47d59dd9c3e..992abfb8108 100644 --- a/packages/react-native/src/evm/wallets/wallets/MagicLink.ts +++ b/packages/react-native/src/evm/wallets/wallets/MagicLink.ts @@ -6,6 +6,14 @@ import { import type { MagicConnector as MagicConnectorType } from "../connectors/magic/magic-connector"; import { MagicConnector } from "../connectors/magic/magic-connector"; +/** + * @deprecated We have deprecated magicLink in favor of our embeddedWallet which adds support for more sign in methods. + * To learn more, please see: + * + * Our release notes: https://portal.thirdweb.com/embedded-wallet + * + * Our documentation: https://portal.thirdweb.com/react-native/react-native.embeddedwallet + */ export class MagicLink extends AbstractClientWallet< MagicLinkOptions, MagicConnectorOptions diff --git a/packages/react-native/src/evm/wallets/wallets/magic-link.tsx b/packages/react-native/src/evm/wallets/wallets/magic-link.tsx index 342a77b00bc..2e82985aa34 100644 --- a/packages/react-native/src/evm/wallets/wallets/magic-link.tsx +++ b/packages/react-native/src/evm/wallets/wallets/magic-link.tsx @@ -21,6 +21,18 @@ import React from "react"; import { ConnectingWallet } from "../../components/ConnectWalletFlow/ConnectingWallet/ConnectingWallet"; import { useGlobalTheme, useLocale } from "../../providers/ui-context-provider"; +/** + * + * @param magicLinkOptions Options available to create a magic link wallet + * @returns A WalletConfig object + * + * @deprecated We have deprecated magicLink in favor of our embeddedWallet which adds support for more sign in methods. + * To learn more, please see: + * + * Our release notes: https://portal.thirdweb.com/embedded-wallet + * + * Our documentation: https://portal.thirdweb.com/react-native/react-native.embeddedwallet + */ export const magicLink = ( magicLinkOptions: MagicLinkOptions & { recommended?: boolean }, ): WalletConfig => {