Skip to content

Commit

Permalink
The current version of the hook usePlaybackState returns an object. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
camilokawerin authored Nov 26, 2024
1 parent e049abb commit d1c7398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/api/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import { usePlaybackState, State } from 'react-native-track-player';

const MyComponent = () => {
const playerState = usePlaybackState();
const isPlaying = playerState === State.Playing;
const isPlaying = playerState.state === State.Playing;

return (
<View>
Expand Down

0 comments on commit d1c7398

Please sign in to comment.