UNPKG

react-native-zalo-kit

Version:
17 lines (16 loc) 553 B
"use strict"; import ZaloKit from "./NativeZaloKit.js"; import { Platform } from 'react-native'; export const login = async authType => { return ZaloKit.login(authType); }; export const logout = ZaloKit.logout; export const isAuthenticated = ZaloKit.isAuthenticated; export const getUserProfile = ZaloKit.getUserProfile; export const getApplicationHashKey = () => { if (Platform.OS === 'android') { return ZaloKit.getApplicationHashKey(); } throw new Error('This function is only supported on Android'); }; //# sourceMappingURL=index.js.map