crossplatformkorea / react-native-kakao-login

react-native native module for Kakao sign in.
MIT License
360 stars 135 forks source link

getProfile cast exception #222

Closed stevechoi closed 3 years ago

stevechoi commented 3 years ago

Version of kakao-login libraries

v2-2.5.0

Version of react-native

0.63.4

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

프로필을 정상적으로 가져옴

Actual behavior

cast exception 발생 (kotlin.unit cannot cast to kotlin.jvm.functions.function2)

Tested environment (Emulator? Real Device?)

galaxy note 8

스크린샷 2021-05-04 오전 7 39 30 RNKakaoLoginModule.kt 의 getProfile 메소드 171 line 의 as (User?, Throwable?) -> Unit 를 지우니 해결은 되어서 일단 이렇게 빌드는 했는데, 이슈 확인이 필요합니다.

hyochan commented 3 years ago

넵 좋은 수정이네요. 다음부터는 PR을 보내주시면 감사하겠습니다.

bigeyes0218 commented 3 years ago

같은 이슈가 있었습니다. 수정하니 해결되네요. 감사합니다.