based on expo-apple-authentication
$ yarn add git+https://github.com/canyara/react-native-apple-auth.git
$ react-native link react-native-apple-auth
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-apple-auth
and addAppleAuth.xcodeproj
- In XCode, in the project navigator, select your project. Add
libAppleAuth.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
use as expo-apple-authentication
import AppleAuth from "react-native-apple-auth";
AppleAuth.isAvailableAsync();
AppleAuth.signInAsync(options);
AppleAuth.getCredentialStateAsync(user);