react-native-waveview icon indicating copy to clipboard operation
react-native-waveview copied to clipboard

When param H changed the wave height not changed

Open Ayaybob opened this issue 5 years ago • 1 comments

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' },
                        ]}
                    />

Ayaybob avatar Sep 23 '19 12:09 Ayaybob

anny luck here?

soheils2 avatar Sep 22 '22 13:09 soheils2