mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-03 21:42:10 +08:00
添加说明
This commit is contained in:
parent
9d0f03aadd
commit
8f67eede61
@ -26,6 +26,8 @@ const LrcLine = memo(({ line, lineNum, activeLine }: {
|
|||||||
const size = lrcFontSize / 10
|
const size = lrcFontSize / 10
|
||||||
const lineHeight = setSpText(size) * 1.25
|
const lineHeight = setSpText(size) * 1.25
|
||||||
|
|
||||||
|
// textBreakStrategy="simple" 用于解决某些设备上字体被截断的问题
|
||||||
|
// https://stackoverflow.com/a/72822360
|
||||||
return (
|
return (
|
||||||
<View style={styles.line}>
|
<View style={styles.line}>
|
||||||
<Text style={{
|
<Text style={{
|
||||||
|
@ -64,6 +64,8 @@ const LrcLine = memo(({ line, lineNum, activeLine }: {
|
|||||||
const size = lrcFontSize / 10
|
const size = lrcFontSize / 10
|
||||||
const lineHeight = setSpText(size) * 1.25
|
const lineHeight = setSpText(size) * 1.25
|
||||||
|
|
||||||
|
// textBreakStrategy="simple" 用于解决某些设备上字体被截断的问题
|
||||||
|
// https://stackoverflow.com/a/72822360
|
||||||
return (
|
return (
|
||||||
<View style={styles.line}>
|
<View style={styles.line}>
|
||||||
<Text style={{
|
<Text style={{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user