我想起牀和反應本機運行。 我有xcode和守望者安裝在此鏈接中的要求。 https://facebook.github.io/react-native/docs/getting-started.html'undefined'沒有propType原生的道具錯誤反應原生
繼快速入門我也做了以下
npm install -g react-native-cli
react-native init AwesomeProject
In the newly created folder AwesomeProject/
Open AwesomeProject.xcodeproj and hit run in Xcode.
當我這樣做,我得到了 '紅色錯誤屏幕'一世ñ我的iPhone模擬器與下面的消息。
'undefined' has no propType for native prop 'RCTMap.mapType' of native type 'MKMapType'
我有看troubleshooting link但一直沒能確定這是一個已知的錯誤。
這怎麼解決?
你能告訴您更多的代碼?看起來好像你在使用MapView,但你不會在你的問題中顯示。 –
感謝@ColinRamsay到目前爲止,我只是運行react-native init命令。我將查看生成的文件,以查看是否可以看到更多與MapView相關的信息並更新問題 – ak85
發現此錯誤有幾點建議: https://github.com/facebook/react-native/issues/1812 –