Skip to content

Commit

Permalink
[RN] Removes magic support in favor of embedded wallet (#1892)
Browse files Browse the repository at this point in the history
  • Loading branch information
iketw authored Nov 2, 2023
1 parent 8e104b4 commit 59e5541
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-walls-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/react-native": patch
---

Deprecates magicLink in favor of embedded wallet
8 changes: 8 additions & 0 deletions packages/react-native/src/evm/wallets/wallets/MagicLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions packages/react-native/src/evm/wallets/wallets/magic-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<MagicLink> 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<MagicLink> => {
Expand Down

0 comments on commit 59e5541

Please sign in to comment.