Login that never hangs
App or web login with automatic web fallback. Failures reject with an error code you can switch on.
Login
Sign users in with Zalo, keep their session fresh and read their profile. Works with React Native CLI apps and Expo development builds.
npm install react-native-zalo-kit
cd ios && pod installyarn add react-native-zalo-kit
cd ios && pod installnpx expo install react-native-zalo-kit
# add the plugin to app.json, then
npx expo prebuildThen create a Zalo app and follow the setup for Expo, iOS or Android.
import { getUserProfile, login } from 'react-native-zalo-kit';
await login();
const { id, name, picture } = await getUserProfile();
