Skip to content

Zalo KitZalo SDK for React Native

Sign users in with Zalo, keep their session fresh and read their profile. Works with React Native CLI apps and Expo development builds.

Zalo Kit

Install ​

sh
npm install react-native-zalo-kit
cd ios && pod install
sh
yarn add react-native-zalo-kit
cd ios && pod install
sh
npx expo install react-native-zalo-kit
# add the plugin to app.json, then
npx expo prebuild

Then create a Zalo app and follow the setup for Expo, iOS or Android.

Sign in and read the profile ​

ts
import { getUserProfile, login } from 'react-native-zalo-kit';

await login();
const { id, name, picture } = await getUserProfile();

See it on a device ​

Zalo login in the example app on Android
Android
Zalo login in the example app on iOS
iOS

Released under the MIT License.