反应原生。我安装库本地响应得到错误(失败)

时间:2017-03-03 08:01:18

标签: javascript ios react-native react-native-ios react-native-maps

我使用库Airbnb react-native-map

创建我的项目

链接:

https://github.com/airbnb/react-native-maps

我只是在终端上运行

npm install react-native-maps --save

react-native link

react-native run-ios

然后运行但在终端上出现了这样的错误:

The following build commands failed:

    CompileC /Users/preechawanaraksakul/Documents/jobpro/ios/build/Build/Intermediates/AirMaps.build/Debug-iphonesimulator/AirMaps.build/Objects-normal/x86_64/AIRMapCallout.o AirMaps/AIRMapCallout.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

我使用反应原生版本0.38.0 因为我需要使用库运动管理器 当我升级> 0.40并在iPhone上发布得到如下错误: IOS - React Native - Unhandled JS Exception: SyntaxError

this is my screenshot from simulator, so it has only box(no display google map)

这种方式可以解决我运行运动传感器的问题

有人告诉我升级到> 0.40使用react-native-maps

我需要有人帮助解决此问题而无需升级> 0.40

感谢您的支持

1 个答案:

答案 0 :(得分:0)

实际上,根据Airbnb文档,您在使用react-native-maps时不应使用react-native link命令。

请参阅:this site

如果你已经联系了this instructions