diff --git a/package-lock.json b/package-lock.json index b2c79b0..ae7d1be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index d456532..98ed94e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/plugins/lyric.ts b/src/plugins/lyric.ts index b03955e..0044974 100644 --- a/src/plugins/lyric.ts +++ b/src/plugins/lyric.ts @@ -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[0]['onSetLyric']>['0'] export type Line = Lines[number] type PlayHook = (line: number, text: string) => void type SetLyricHook = (lines: Lines) => void diff --git a/src/screens/PlayDetail/components/SettingPopup/settings/style.ts b/src/screens/PlayDetail/components/SettingPopup/settings/style.ts index 7affbc0..456e1d6 100644 --- a/src/screens/PlayDetail/components/SettingPopup/settings/style.ts +++ b/src/screens/PlayDetail/components/SettingPopup/settings/style.ts @@ -12,7 +12,7 @@ export default createStyle({ // }, label: { - width: 40, + width: 50, textAlign: 'center', }, content: {