From d1c7398c6f1fe1dac18c32c0e461ef6317889d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Camilo=20J=2E=20Kawer=C3=ADn?= Date: Tue, 26 Nov 2024 05:29:18 -0300 Subject: [PATCH] The current version of the hook usePlaybackState returns an object. (#2369) --- docs/docs/api/hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/api/hooks.md b/docs/docs/api/hooks.md index 4df247584..92d8b93a6 100644 --- a/docs/docs/api/hooks.md +++ b/docs/docs/api/hooks.md @@ -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 (