Closed Joshmatjjen closed 3 years ago
I just fixed it... first, run this script to install this version:
If using NPM
npm i react-native-music-control@0.10.8
If using Yarn
yarn add react-native-music-control@0.10.8
This is an example of the code i used
if (state.pause === true) {
MusicControl.updatePlayback({ state: MusicControl.STATE_PAUSED, });
// Make your choice with any of this functions
MusicControl.enableControl('closeNotification', true, { when: 'paused' });
MusicControl.enableControl('closeNotification', true, { when: 'always' });
MusicControl.stopControl();
}
Hope this could help anyone out there
When Function is called to close the notification, it don't close, also when swiped
Platform ?