react-native-zalo-kit
Version:
Zalo SDK implementation for React Native
17 lines (16 loc) • 553 B
JavaScript
;
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