We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ee2ac commit ea11fabCopy full SHA for ea11fab
example/src/App.tsx
@@ -107,7 +107,15 @@ const ListItem = React.memo(
107
scrubColor={Colors.white}
108
waveColor={Colors.gray}
109
candleHeightScale={4}
110
- onPlayerStateChange={setPlayerState}
+ onPlayerStateChange={state => {
111
+ setPlayerState(state);
112
+ if (
113
+ state === PlayerState.stopped &&
114
+ currentPlaying === item.path
115
+ ) {
116
+ setCurrentPlaying('');
117
+ }
118
+ }}
119
onPanStateChange={onPanStateChange}
120
onError={error => {
121
console.log(error, 'we are in example');
0 commit comments