Native component for “AIRMap” does not exist

最后都变了- 提交于 2019-12-08 15:18:31

In my case I had the same result after following the instructions and the solution at the end was really simple.

I went to Xcode -> Clean -> Build.

There I saw that I had 2 errors in my code:

  1. Expected ';' after module name (@import GoogleMaps)

  2. Use of undeclared identifier ([GMSPlacesClient provideAPIKey:@"MY_KEY"];)

So, I added ';' and deleted the line GMSPlacesClient provideAPIKey:@"MY_KEY"];

After that I executed again 'npm run ios' and all worked like a charm!

There are other solutions here:

  1. https://github.com/react-community/react-native-maps/issues/1798

  2. https://github.com/react-community/react-native-maps/issues/2064

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!