공식 문서 : https://github.com/react-native-seoul/react-native-kakao-login
GitHub - react-native-seoul/react-native-kakao-login: react-native native module for Kakao sign in.
react-native native module for Kakao sign in. Contribute to react-native-seoul/react-native-kakao-login development by creating an account on GitHub.
github.com
npm install @react-native-seoul/kakao-login
npx pod-install
- ios
1.
ios -> Podfile ->
platform :ios, '11.0'
# 11 이상이어야 함
2.
카카오 개발자 사이트 가서 앱을 생성한다.(추후 네이티브 앱 키 사용해서 설정함)
3.
xcode -> targets(app) -> info -> URL Types -> URL Schemes에 kakao123r23235 입력(123r23235 는 네이티브 앱 키)
OR
ios -> 프로젝트 이름 -> Info.plist -> 공식문서 3번에 있는 코드를 넣어준다.
+ {카카오 네이티브앱 아이디를 적어주세요} -> 이 부분은 {} 없이 네이티브앱 키만 넣어준다.
4.
xcode -> file -> new file -> Swift File -> swift 파일 생성
5.
카카오 개발자 페이지 -> 내 앱 -> 플랫폼 -> ios 번들 id 확인
xcode -> 프로젝트 -> targets(app) -> general -> bundle identifier 확인
카카오에 등록되어있는 내 앱의 ios 번들 id 와 xcode 에 bundle identifier가 같아야함
'앱 > React Native' 카테고리의 다른 글
아임포트 리액트 네이티브 모듈 분석 (0) | 2022.03.30 |
---|---|
TouchableOpacity onPress 안 되는 문제(TextInput 문제) (0) | 2022.03.25 |
Firebase v9 - realtime database remove 쓰는 법 (0) | 2022.03.15 |
multiple commands produce MaterialCommunityIcons.ttf error 발생시 해결 방법 (0) | 2022.03.13 |
[RN] props (0) | 2022.03.10 |