From 843b56b0033af86550247fa6ccfd8ca5a4f13b15 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Thu, 10 Oct 2024 12:59:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0toast=E5=81=8F=E7=A7=BB?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/tools.ts b/src/utils/tools.ts index 4d90d8e..193e113 100644 --- a/src/utils/tools.ts +++ b/src/utils/tools.ts @@ -120,7 +120,7 @@ export const toast = (message: string, duration: 'long' | 'short' = 'short', pos switch (position) { case 'top': _position = ToastAndroid.TOP - offset = 80 + offset = 120 break case 'center': _position = ToastAndroid.CENTER @@ -129,7 +129,7 @@ export const toast = (message: string, duration: 'long' | 'short' = 'short', pos case 'bottom': default: _position = ToastAndroid.BOTTOM - offset = 80 + offset = 120 break } ToastAndroid.showWithGravityAndOffset(message, _duration, _position, 0, offset)