mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修复标签换行问题
This commit is contained in:
parent
d8f529e84b
commit
45c63cb988
14
package-lock.json
generated
14
package-lock.json
generated
@ -15,7 +15,7 @@
|
|||||||
"@react-native-community/checkbox": "^0.5.15",
|
"@react-native-community/checkbox": "^0.5.15",
|
||||||
"@react-native-community/slider": "^4.4.2",
|
"@react-native-community/slider": "^4.4.2",
|
||||||
"iconv-lite": "^0.6.3",
|
"iconv-lite": "^0.6.3",
|
||||||
"lrc-file-parser": "^2.3.2",
|
"lrc-file-parser": "^2.4.1",
|
||||||
"pako": "^2.1.0",
|
"pako": "^2.1.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-native": "0.71.7",
|
"react-native": "0.71.7",
|
||||||
@ -8386,9 +8386,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lrc-file-parser": {
|
"node_modules/lrc-file-parser": {
|
||||||
"version": "2.3.2",
|
"version": "2.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/lrc-file-parser/-/lrc-file-parser-2.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/lrc-file-parser/-/lrc-file-parser-2.4.1.tgz",
|
||||||
"integrity": "sha512-iInpWhRdfMBsnre6R3i3IayjgGE0koqncQxEB4X+QMgY7bkp9Kh2z1jqLQKg6LQmHUAte4v3LgFLG3Wz6UCyvw=="
|
"integrity": "sha512-vriDfIyKqdL7xUOHzsAojY/LwfsLBx/Lnob/9EzIx89ZtHLCFl8ewAeR7LaFC+frw8ITRDSgr3mzyb7cZPXYNg=="
|
||||||
},
|
},
|
||||||
"node_modules/lru-cache": {
|
"node_modules/lru-cache": {
|
||||||
"version": "5.1.1",
|
"version": "5.1.1",
|
||||||
@ -18435,9 +18435,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lrc-file-parser": {
|
"lrc-file-parser": {
|
||||||
"version": "2.3.2",
|
"version": "2.4.1",
|
||||||
"resolved": "https://registry.npmjs.org/lrc-file-parser/-/lrc-file-parser-2.3.2.tgz",
|
"resolved": "https://registry.npmjs.org/lrc-file-parser/-/lrc-file-parser-2.4.1.tgz",
|
||||||
"integrity": "sha512-iInpWhRdfMBsnre6R3i3IayjgGE0koqncQxEB4X+QMgY7bkp9Kh2z1jqLQKg6LQmHUAte4v3LgFLG3Wz6UCyvw=="
|
"integrity": "sha512-vriDfIyKqdL7xUOHzsAojY/LwfsLBx/Lnob/9EzIx89ZtHLCFl8ewAeR7LaFC+frw8ITRDSgr3mzyb7cZPXYNg=="
|
||||||
},
|
},
|
||||||
"lru-cache": {
|
"lru-cache": {
|
||||||
"version": "5.1.1",
|
"version": "5.1.1",
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
"@react-native-community/checkbox": "^0.5.15",
|
"@react-native-community/checkbox": "^0.5.15",
|
||||||
"@react-native-community/slider": "^4.4.2",
|
"@react-native-community/slider": "^4.4.2",
|
||||||
"iconv-lite": "^0.6.3",
|
"iconv-lite": "^0.6.3",
|
||||||
"lrc-file-parser": "^2.3.2",
|
"lrc-file-parser": "^2.4.1",
|
||||||
"pako": "^2.1.0",
|
"pako": "^2.1.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-native": "0.71.7",
|
"react-native": "0.71.7",
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import Lyric from 'lrc-file-parser'
|
import Lyric, { type Lines } from 'lrc-file-parser'
|
||||||
// import { getStore, subscribe } from '@/store'
|
// import { getStore, subscribe } from '@/store'
|
||||||
type Lines = Parameters<ConstructorParameters<typeof Lyric>[0]['onSetLyric']>['0']
|
|
||||||
export type Line = Lines[number]
|
export type Line = Lines[number]
|
||||||
type PlayHook = (line: number, text: string) => void
|
type PlayHook = (line: number, text: string) => void
|
||||||
type SetLyricHook = (lines: Lines) => void
|
type SetLyricHook = (lines: Lines) => void
|
||||||
|
@ -12,7 +12,7 @@ export default createStyle({
|
|||||||
|
|
||||||
// },
|
// },
|
||||||
label: {
|
label: {
|
||||||
width: 40,
|
width: 50,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user