728x90
- 환경: RN 0.61.5
- 라이브러리
https://github.com/react-native-community/react-native-maps
- google api key 생성
https://developers.google.com/maps/documentation/ios-sdk/get-api-key
get api key 부분 그대로
- 설치
https://github.com/react-native-community/react-native-maps/blob/master/docs/installation.md
<ios>
installation 대로 따라하기!
<android>
android installation 따라하고
아래는 추가로 해준거!
1) Build configuration on Android
project-wide properties 안써서 3.2 했음
2) 빌드가 안됨. -> supportLibVersion 추가
https://github.com/react-native-community/react-native-maps/issues/3108
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0" // add this line
3) 빌드는 되는데 앱 켜자마자 꺼져서 검색해봤더니
https://github.com/react-native-community/react-native-maps/issues/2880
<uses-library android:name="org.apache.http.legacy" android:required="false"/>