Check out example codes for "white or light ASAuthorizationAppleIDButton “Sign in with Apple” button - Swift". It will help you in understanding the concepts better.

Code Example 1

let appleButton = ASAuthorizationAppleIDButton(type: .default, style: .white)

Learn ReactJs, React Native from akashmittal.com