1import React from 'react'; 2import ExpoAppleAuthenticationButton from './ExpoAppleAuthenticationButton'; 3// @needsAudit 4/** 5 * This component displays the proprietary "Sign In with Apple" / "Continue with Apple" button on 6 * your screen. The App Store Guidelines require you to use this component to start the 7 * authentication process instead of a custom button. Limited customization of the button is 8 * available via the provided properties. 9 * 10 * You should only attempt to render this if [`AppleAuthentication.isAvailableAsync()`](#isavailableasync) 11 * resolves to `true`. This component will render nothing if it is not available, and you will get 12 * a warning in development mode (`__DEV__ === true`). 13 * 14 * The properties of this component extend from `View`; however, you should not attempt to set 15 * `backgroundColor` or `borderRadius` with the `style` property. This will not work and is against 16 * the App Store Guidelines. Instead, you should use the `buttonStyle` property to choose one of the 17 * predefined color styles and the `cornerRadius` property to change the border radius of the 18 * button. 19 * 20 * Make sure to attach height and width via the style props as without these styles, the button will 21 * not appear on the screen. 22 * 23 * @see [Apple 24 * Documentation](https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidbutton) 25 * for more details. 26 */ 27export default function AppleAuthenticationButton({ onPress, ...restProps }) { 28 if (!ExpoAppleAuthenticationButton) { 29 if (__DEV__) { 30 console.warn("'AppleAuthenticationButton' is not available."); 31 } 32 return null; 33 } 34 return React.createElement(ExpoAppleAuthenticationButton, { onButtonPress: onPress, ...restProps }); 35} 36//# sourceMappingURL=AppleAuthenticationButton.js.map