react-native-player-lockscreen
Version:
Adds play information to the lockscreen
18 lines (14 loc) • 407 B
JavaScript
;
import { NativeModules, DeviceEventEmitter } from 'react-native';
const NativeMusicControl = NativeModules.PlayerLockScreen;
/**
* High-level docs for the MusicControl iOS API can be written here.
*/
var handlers = { };
var subscription = null;
var MusicControl = {
setNowPlaying: function(info){
NativeMusicControl.setNowPlaying(info)
}
};
module.exports = MusicControl;