react-native-waveview
react-native-waveview copied to clipboard
When param H changed the wave height not changed
It's good only if I call setWaterHeightfunction in ref callback.
<Wave ref={(wave) => wave && wave.setWaterHeight(150 * score / scoreTotal)}
style={{ width: 150, aspectRatio: 1, overflow: 'hidden', backgroundColor: '#FEB25780', borderRadius: 75 }}
H={150 * score / scoreTotal} animated={true} waveParams={[
{ A: 10, T: 180, fill: '#FEB25780' },
{ A: 10, T: 180, fill: '#FEB25780' },
{ A: 10, T: 180, fill: '#FEB25780' },
]}
/>
anny luck here?