For the purpose of demonstration, suppose we created a fresh React Native project called testAppleButton.
- Open your project in Xcode by clicking
open another project, and navigating to this file:testAppleButton/ios/testAppleButton.xcodeproj
- Click
testAppleButtonunder the target's header.
- Click
Signing and capabilitiesto show the below noted view. Click+ Capabilityand from the menu selectSign in with Applewhich will appear at the bottom as highlighted.
- You will need to sign in as a team if you have this error message.
- If successful, your status should show no error message like below.
- Head over to Apple's developer console. Click
Accountin the nav bar at the top. You will either have to sign in, or create an account. Your account dashboard ought to look like this. If you do not seeCertificates, IDs & profilesas an option in the left-hand sidebar, it means you have not yet enrolled in the Apple developer program which is a prerequisite for Apple product development.
- Click on
Identifiersin the left-hand sidebar. Click on your project in the list, in our case,testAppleButton.
- Tick the checkbox for
Sign in with Appleand click theEditbutton. SelectEnable as a primary App IDand clickSavebutton.
- Click the
Savebutton at the top of the screen.
- Please note: If you choose another app to be your primary app, you will have to go through the above noted process, up until you navigate to the Apple developer console, and choose the
Group with existing primary App IDoption & thetestAppleButtonID.
- Click on
keysin left-hand sidebar and create a new key.
- Give your new key a name. Tick the checkbox next to
Sign In with Apple, and clickConfigure.
- Select
testAppleButtonas our primary app ID.
- Register your key, download it and keep it secure. Initial setup is now complete.
If you will use @react-native-firebase/auth for Social Login with Apple for Apple devices, you must add the Apple app's bundle id in the Service ID field in the Firebase Console
Example: Add org.reactjs.native.example.testAppleButton in the Service ID field
Check out the guide for more information.














