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) {
|
switch (position) {
|
||||||
case 'top':
|
case 'top':
|
||||||
_position = ToastAndroid.TOP
|
_position = ToastAndroid.TOP
|
||||||
offset = 80
|
offset = 120
|
||||||
break
|
break
|
||||||
case 'center':
|
case 'center':
|
||||||
_position = ToastAndroid.CENTER
|
_position = ToastAndroid.CENTER
|
||||||
@ -129,7 +129,7 @@ export const toast = (message: string, duration: 'long' | 'short' = 'short', pos
|
|||||||
case 'bottom':
|
case 'bottom':
|
||||||
default:
|
default:
|
||||||
_position = ToastAndroid.BOTTOM
|
_position = ToastAndroid.BOTTOM
|
||||||
offset = 80
|
offset = 120
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
ToastAndroid.showWithGravityAndOffset(message, _duration, _position, 0, offset)
|
ToastAndroid.showWithGravityAndOffset(message, _duration, _position, 0, offset)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user