React Native 0.27.2编译报错this._nativeModule.addListener is not a function

React Native:0.27.2

React:15.1.0

Node:6.1.0

npm:3.8.6

 

编译报错如下:

this._nativeModule.addListener is not a function.(In 'this._nativeModule.addListener(eventType)','this._nativeModule.addListener' is undefined)

 

解决办法:

npm link

你可能感兴趣的:(ios,react)