본문 바로가기
JavaScript/React

[RN] React Native Google Map

by 혀나Lee 2019. 10. 22.

프로젝트 생성

$ create-react-native-app GMAP
=> 'minimal' 모드로 선택

실행 확인

$ cd GMAP
$ yarn ios

> 빌드 에러

"error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening GAMPOverlays.xcodeproj"

> 해결방법

$ cd ios
$ pod install

React Native Maps 설치

$ yarn add react-native-maps
$ react-native link react-native-maps

> 빌드 에러

"AIRMap" was not found in the UIManager.

> 해결방법

ios podfile 을 다시 설치해줘야 한다.

$ cd ios
$ rm -rf build
$ pod install

댓글