Open
Description
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
import TrackPlayer, { State } from 'react-native-track-player';
const state = await TrackPlayer.getState();
if (state === State.Playing) {
console.log('The player is playing');
};
It should be updated with the recommended replacement for getState()
.
Activity