update: lint fixes for toast.tsx

This commit is contained in:
Ana
2025-07-30 00:40:34 -07:00
parent f8781270e5
commit 315e7341bf
+10 -9
View File
@@ -1,12 +1,3 @@
import {atoms as a, useTheme} from '#/alf'
import {Text} from '#/components/Typography'
import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
import {
type ToastType,
getToastTypeStyles,
TOAST_ANIMATION_CONFIG,
TOAST_TYPE_TO_ICON,
} from '#/view/com/util/Toast.style'
import {useEffect, useMemo, useRef, useState} from 'react'
import {AccessibilityInfo, View} from 'react-native'
import {
@@ -27,6 +18,16 @@ import Animated, {
import RootSiblings from 'react-native-root-siblings'
import {useSafeAreaInsets} from 'react-native-safe-area-context'
import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
import {
getToastTypeStyles,
TOAST_ANIMATION_CONFIG,
TOAST_TYPE_TO_ICON,
type ToastType,
} from '#/view/com/util/Toast.style'
import {atoms as a, useTheme} from '#/alf'
import {Text} from '#/components/Typography'
const TIMEOUT = 2e3
export function show(message: string, type: ToastType = 'default') {