You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importTrackPlayer,{State}from'react-native-track-player';conststate=awaitTrackPlayer.getState();if(state===State.Playing){console.log('The player is playing');};
It should be updated with the recommended replacement for getState().
The text was updated successfully, but these errors were encountered:
Describe the Bug
The docs in getting player information is showing usage of deprecated method
getState()
:https://rntp.dev/docs/basics/getting-started#player-information
It should be updated with the recommended replacement for
getState()
.The text was updated successfully, but these errors were encountered: