File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 11import { NativeModules } from 'react-native' ;
2- import { RNKakaoLoginModule } from './types' ;
2+ import { KakaoLoginModuleInterface } from './types' ;
33
44const { RNKakaoLogins} = NativeModules ;
55
6- const NativeKakaoLogins : RNKakaoLoginModule = {
6+ const NativeKakaoLogins : KakaoLoginModuleInterface = {
77 login ( ) {
88 return RNKakaoLogins . login ( ) ;
99 } ,
@@ -30,3 +30,5 @@ export const logout = NativeKakaoLogins.logout;
3030export const unlink = NativeKakaoLogins . unlink ;
3131export const getProfile = NativeKakaoLogins . getProfile ;
3232export const getAccessToken = NativeKakaoLogins . getAccessToken ;
33+
34+ export * from './types' ;
Original file line number Diff line number Diff line change 1- import { KaKaoLoginWebType , RNKakaoLoginModule } from './types' ;
1+ import { KaKaoLoginWebType , KakaoLoginModuleInterface } from './types' ;
22
3- const WebKakaoLogins : RNKakaoLoginModule = {
3+ const WebKakaoLogins : KakaoLoginModuleInterface = {
44 login ( props ?: KaKaoLoginWebType ) {
55 if ( ! props ) {
66 throw new Error ( 'Web parameters are not provided' ) ;
@@ -68,3 +68,5 @@ export const logout = WebKakaoLogins.logout;
6868export const unlink = WebKakaoLogins . unlink ;
6969export const getProfile = WebKakaoLogins . getProfile ;
7070export const getAccessToken = WebKakaoLogins . getAccessToken ;
71+
72+ export * from './types' ;
Original file line number Diff line number Diff line change 1- export interface RNKakaoLoginModule {
1+ export interface KakaoLoginModuleInterface {
22 login ( ) : Promise < KakaoOAuthToken > ;
33 login ( props : KaKaoLoginWebType ) : Promise < KakaoOAuthWebToken > ;
44
You can’t perform that action at this time.
0 commit comments