0.0.2 ā¢ Published 5 years ago
react-native-login-with-apple v0.0.2
React-Native Login with Apple
ā Simple to use React Native library to get the Apple SignIn on iOS devices.
Requirements
- React Native >= 0.60.0
- iOS >= 10.0
- Xcode >= 11.0
Install
Install dependency package
yarn add react-native-login-with-apple
Or
npm i -S react-native-login-with-apple
With the
React Native 0.60.+
the link should happen automatically.
Setup iOS project
- Enable the "Sign In with Apple" capability in your app. Enable the capability in Xcode under "Signing & Capabilities" -- you'll need to be on Xcode 11 or later.
- Log into the Apple Developer Console, go to "Certificates, Identifiers, & Profiles" and then "Identifiers".
- You need to choose a primary app for the Apple Sign In configuration. This is the app whose icon will show up in the Apple Sign In system UI. If you have a set of related apps you might choose the "main" app as the primary, but most likely you'll want to just use the app you're working on now as the primary.
- In the list of identifiers, click on the one corresponding to your primary app. Enable the "Sign In with Apple" capability, click "Edit", and choose the "Enable as a primary App ID" option. Save the new configuration.
- If you chose a different app to be the primary, you'll also need to open up the configuration page for your current app, enable the "Sign In with Apple" capability, click "Edit" and choose the "Group with an existing primary App ID" option. Save this configuration as well.
- Next, go to the "Keys" page and register a new key. Add the "Sign In with Apple" capability, and make sure to choose the correct primary app on the configuration screen.
- Ready to go.
Usage
Soon.
API
Soon.
Contribute
New features, bug fixes and improvements are welcome! For questions and suggestions use the issues.
Licence
The MIT License (MIT)
Copyright (c) 2019 Douglas Nassif Roma Junior
See the full licence file.