React native 捕获错误-setShowActionsInCompactView

React native 捕获错误-setShowActionsInCompactView,react-native,React Native,我尝试将包用于我的项目,但每次发现错误时: 设置ShowActionsInCompactView:操作0超出范围(最大值-1) 我的代码来自演示应用程序: MusicControl.enableBackgroundMode(true); MusicControl.setNowPlaying({ title: 'Billie Jean', artwork: 'https://i.imgur.com/e1cpwdo.png', artist: 'Michael J

我尝试将包用于我的项目,但每次发现错误时:
设置ShowActionsInCompactView:操作0超出范围(最大值-1)

我的代码来自演示应用程序:

MusicControl.enableBackgroundMode(true);
MusicControl.setNowPlaying({
      title: 'Billie Jean',
      artwork: 'https://i.imgur.com/e1cpwdo.png',
      artist: 'Michael Jackson',
      album: 'Thriller',
      genre: 'Post-disco, Rhythm and Blues, Funk, Dance-pop',
      duration: this.whoosh.getDuration(),
      description: 'Billie Jean is a song by American singer Michael Jackson. It is the second single from the singer\'s sixth solo album, Thriller (1982). It was written and composed by Jackson and produced by Jackson and Quincy Jones.',
      date: '1983-01-02T00:00:00Z',
      rating: 84
    })
    MusicControl.enableControl('play', false)
    MusicControl.enableControl('pause', true)
我已将代码简化为简单调用:

MusicControl.setNowPlaying({
      title: 'Billie Jean',
})
但错误仍然存在。 然后,我尝试运行演示项目,因为它是,我再次失败,与相同的错误

我发现很多项目都使用这个包,我的代码也很熟悉。
有谁能给我一个我哪里出错的提示吗

损坏的当前软件包verison-0.9.8


讨论

损坏的当前软件包verison-0.9.8

讨论