2017-07-17 113 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,它爲我工作。謝謝 –