修复标签换行问题

This commit is contained in:
lyswhut 2023-04-24 12:59:24 +08:00
parent d8f529e84b
commit 45c63cb988
4 changed files with 10 additions and 11 deletions

14
package-lock.json generated
View File

@ -15,7 +15,7 @@
"@react-native-community/checkbox": "^0.5.15",
"@react-native-community/slider": "^4.4.2",
"iconv-lite": "^0.6.3",
"lrc-file-parser": "^2.3.2",
"lrc-file-parser": "^2.4.1",
"pako": "^2.1.0",
"react": "18.2.0",
"react-native": "0.71.7",
@ -8386,9 +8386,9 @@
}
},
"node_modules/lrc-file-parser": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/lrc-file-parser/-/lrc-file-parser-2.3.2.tgz",
"integrity": "sha512-iInpWhRdfMBsnre6R3i3IayjgGE0koqncQxEB4X+QMgY7bkp9Kh2z1jqLQKg6LQmHUAte4v3LgFLG3Wz6UCyvw=="
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/lrc-file-parser/-/lrc-file-parser-2.4.1.tgz",
"integrity": "sha512-vriDfIyKqdL7xUOHzsAojY/LwfsLBx/Lnob/9EzIx89ZtHLCFl8ewAeR7LaFC+frw8ITRDSgr3mzyb7cZPXYNg=="
},
"node_modules/lru-cache": {
"version": "5.1.1",
@ -18435,9 +18435,9 @@
}
},
"lrc-file-parser": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/lrc-file-parser/-/lrc-file-parser-2.3.2.tgz",
"integrity": "sha512-iInpWhRdfMBsnre6R3i3IayjgGE0koqncQxEB4X+QMgY7bkp9Kh2z1jqLQKg6LQmHUAte4v3LgFLG3Wz6UCyvw=="
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/lrc-file-parser/-/lrc-file-parser-2.4.1.tgz",
"integrity": "sha512-vriDfIyKqdL7xUOHzsAojY/LwfsLBx/Lnob/9EzIx89ZtHLCFl8ewAeR7LaFC+frw8ITRDSgr3mzyb7cZPXYNg=="
},
"lru-cache": {
"version": "5.1.1",

View File

@ -48,7 +48,7 @@
"@react-native-community/checkbox": "^0.5.15",
"@react-native-community/slider": "^4.4.2",
"iconv-lite": "^0.6.3",
"lrc-file-parser": "^2.3.2",
"lrc-file-parser": "^2.4.1",
"pako": "^2.1.0",
"react": "18.2.0",
"react-native": "0.71.7",

View File

@ -1,7 +1,6 @@
import { useEffect, useState } from 'react'
import Lyric from 'lrc-file-parser'
import Lyric, { type Lines } from 'lrc-file-parser'
// import { getStore, subscribe } from '@/store'
type Lines = Parameters<ConstructorParameters<typeof Lyric>[0]['onSetLyric']>['0']
export type Line = Lines[number]
type PlayHook = (line: number, text: string) => void
type SetLyricHook = (lines: Lines) => void

View File

@ -12,7 +12,7 @@ export default createStyle({
// },
label: {
width: 40,
width: 50,
textAlign: 'center',
},
content: {