From 7c4811f13693e22adad7b4ec3237a89c9204d8a8 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 20 Oct 2025 18:14:07 -0500 Subject: [PATCH] Remove access to full Sonner API for now --- src/components/Toast/index.ios.tsx | 7 ------- src/components/Toast/index.tsx | 5 ----- src/components/Toast/index.web.tsx | 5 ----- 3 files changed, 17 deletions(-) diff --git a/src/components/Toast/index.ios.tsx b/src/components/Toast/index.ios.tsx index 041b088820..f1f2df047d 100644 --- a/src/components/Toast/index.ios.tsx +++ b/src/components/Toast/index.ios.tsx @@ -2,7 +2,6 @@ import React, {useSyncExternalStore} from 'react' import {View} from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' import {nanoid} from 'nanoid/non-secure' -import {toast as sonner} from 'sonner-native' import {atoms as a} from '#/alf' import {DURATION} from '#/components/Toast/const' @@ -97,12 +96,6 @@ export function Outer({children}: {children: React.ReactNode}) { ) } -/** - * Access the full Sonner API - * @deprecated TBD - */ -export const api = sonner - /** * Our base toast API, using the `Toast` export of this file. */ diff --git a/src/components/Toast/index.tsx b/src/components/Toast/index.tsx index 54afeafb11..34b8443148 100644 --- a/src/components/Toast/index.tsx +++ b/src/components/Toast/index.tsx @@ -34,11 +34,6 @@ export function Outer({children}: {children: React.ReactNode}) { ) } -/** - * Access the full Sonner API - */ -export const api = sonner - /** * Our base toast API, using the `Toast` export of this file. */ diff --git a/src/components/Toast/index.web.tsx b/src/components/Toast/index.web.tsx index 95a4ff996a..ba03459893 100644 --- a/src/components/Toast/index.web.tsx +++ b/src/components/Toast/index.web.tsx @@ -32,11 +32,6 @@ export function ToastOutlet() { ) } -/** - * Access the full Sonner API - */ -export const api = sonner - /** * Our base toast API, using the `Toast` export of this file. */