2017-07-17 157 views
1

我使用react native为我的项目,奇怪我收到错误像下图所示。我不明白这是什么错误。有人可以帮助解决这个问题吗?原生动画模块不可用 - 反应原生

enter image description here

+1

的代码将是非常有用的;)我们怎么否则解决问题了吗? –

+0

https://github.com/facebook/react-native/issues/8602这可能会帮助你 –

+0

感谢@Jeffrey的链接,我已经检查过它 –

回答

2

新增RCTAnimation到podfile。有效!

荚 '阵营':PATH => react_native_path,:subspecs => [

'Core', 
'RCTText', 
'RCTImage', 
'DevSupport', 
'BatchedBridge', 
'RCTAnimation', 
'RCTWebSocket', # needed for debugging 
# Add any other subspecs you want to use in your project 
] 
+0

Yaa,它为我工作。谢谢 –