This Expo module provides an async function for Expo apps running on both iOS and Android. It returns an iCloud user identity on iOS and an email on Android. It automatically sets appropriate entitlements for iOS.
To install this module, run the following command:
npx expo install expo-user-identity
This module only has one method, getUserIdentity()
, which returns a promise that resolves to a string.
import { getUserIdentity } from 'expo-user-identity'
- [x] iOS support
- [x] Android support
- [ ] Web support (if possible, likely not)