react-native-zalo-auth
Version:
Zalo SDK for React Native
44 lines (37 loc) • 757 B
text/typescript
import { NativeModules } from 'react-native';
const { ZaloKit } = NativeModules;
export enum Constants {
AUTH_VIA_WEB = ZaloKit.AUTH_VIA_WEB,
AUTH_VIA_APP = ZaloKit.AUTH_VIA_APP,
AUTH_VIA_APP_OR_WEB = ZaloKit.AUTH_VIA_APP_OR_WEB,
}
export interface IZaloAuthResponse {
oauthCode: string;
userId: string;
socialId: string;
}
export interface IUserProfile {
id: string;
name: string;
phone_number?: string;
gender: string;
birthday: string;
picture: {
data: {
url: string;
};
};
}
export interface IFriendList {
data: IUserProfile[];
paging: {};
summary: {
total_count: number;
};
}
export interface IShareResponseObject {
success: boolean;
data: string;
message: string;
sendAction: 0 | 1;
}