lyric,lrc,karaoke
npm install react-native-lyriclyric,lrc,karaoke
``sh`
npm install react-native-lyric
`js
import React, { useCallback } from 'react';
import { Text } from 'react-native';
import { Lyric } from 'react-native-lyric';
const Lyric = ({ lrc, currentTime }) => {
const lineRenderer = useCallback(
({ lrcLine: { millisecond, content }, index, active }) => (
{content}
),
[],
);
return (
lrc={lrc}
currentTime={currentTime}
lineHeight={16}
lineRenderer={lineRenderer}
/>
);
};
export default Lyric;
// ...
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT