react-native-audio-waveform icon indicating copy to clipboard operation
react-native-audio-waveform copied to clipboard

[enhancement] Can you add candleHeightScale, onCurrentProgress change?

Open ntxl1210 opened this issue 1 year ago • 0 comments
trafficstars

I noticed you set a fixed scale value for candle height to 3. Could you add a prop to change this value? And if possible, could you also add a prop like onCurrentProgressChange or some props so that I can get currentProgress and songDuration through these props?

example: in Waveform component

useEffect(() => {
        onCurrentProgressChange?.(currentProgress, songDuration);
    }, [currentProgress, songDuration])

ntxl1210 avatar Apr 27 '24 11:04 ntxl1210