mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
更新toast偏移位置
This commit is contained in:
parent
3c0a13fb5a
commit
843b56b003
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user