Open fang1994042128 opened 7 years ago
试一下 npm link
会不会报错?
On 6月 8 2017, at 4:40 下午, xiaofangN <notifications@github.com> wrote:
MusicControlManager.enableControl got 3 arguments, expected 2
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
先运行了 npm link 在yarn run android运行起以后还是报一摸一样的错误
这个在有用到MusicControl的地方, 把
import MusicControl from 'react-native-music-control/index.ios.js'
换成
import MusicControl from 'react-native-music-control/index.android.js'
就解决了..
@hang333 我修改之后还是会报错 求指点
@WangZiLuo 当时我修改了无数地方,一个一个报错接着来,我就放弃了
MusicControlManager.enableControl got 3 arguments, expected 2