added seeking to now playing/notification

This commit is contained in:
austinried
2021-08-10 15:27:20 +09:00
parent 9705a95aaa
commit 2d2efe3dcf
7 changed files with 78 additions and 20 deletions

View File

@@ -21,8 +21,8 @@ const ProgressBar = () => {
return (
<View style={progressStyles.container}>
<View style={{ ...progressStyles.left, flex: progress }} />
<View style={{ ...progressStyles.right, flex: 1 - progress }} />
<View style={[progressStyles.left, { flex: progress }]} />
<View style={[progressStyles.right, { flex: 1 - progress }]} />
</View>
)
}
@@ -52,8 +52,6 @@ const NowPlayingBar = () => {
switch (playerState) {
case State.Playing:
case State.Buffering:
case State.Connecting:
playPauseIcon = 'pause'
playPauseAction = pause
break