AppleSignInButton
Apple's branded button, full width. Renders nothing off iOS.
packages/ui-native/src/layouts/apple-sign-in.tsx
Import
Subpath export:
@marktiderman/genesis-ui-nativeimport { AppleSignInButton } from "@marktiderman/genesis-ui-native";Components
Auto-generated from TypeScript source via
react-docgen-typescript.AppleSignInButton
Apple's branded button, full width. Renders nothing off iOS.
| Prop | Type | Default | Description |
|---|---|---|---|
| apple* | AppleButtonModuleLike | — | `expo-apple-authentication`. |
| onPress* | () => void | Promise<void> | — | Usually `() => signInWithApple(supabase, AppleAuthentication, { digest })` from `@marktiderman/genesis-supabase/native`. |
| appearance | enum | auto | `"auto"` (default): black in light mode, white in dark, as Apple recommends. |
| cornerRadius | number | 10 | Default 10, to sit with Genesis buttons. |
| disabled | boolean | — | Dims the button and ignores presses. It is also ignored on its own while an `onPress` promise is pending, so a second tap can't open a second sheet. |
| height | number | 44 | Default 44, the recommended touch target (Apple's HIG minimum for this button is 30pt). |
| testID | string | apple-sign-in | |
| type | enum | continue | Apple's wording: "Sign in with Apple", "Continue with Apple" (default) or "Sign up with Apple". |
appleProvider
A `SocialAuthProvider` (id `"apple"`) that draws Apple's button, for `AuthScreen`'s `providers`. `null` off iOS or without the module.
| Prop | Type | Default | Description |
|---|---|---|---|
| apple* | AppleButtonModuleLike | null | undefined | — | `expo-apple-authentication`, or `undefined` where it isn't installed. |
| onPress* | () => void | Promise<void> | — | Usually `() => signInWithApple(supabase, AppleAuthentication, { digest })` from `@marktiderman/genesis-supabase/native`. |
| appearance | enum | — | `"auto"` (default): black in light mode, white in dark, as Apple recommends. |
| cornerRadius | number | — | Default 10, to sit with Genesis buttons. |
| disabled | boolean | — | Dims the button and ignores presses. It is also ignored on its own while an `onPress` promise is pending, so a second tap can't open a second sheet. |
| height | number | — | Default 44, the recommended touch target (Apple's HIG minimum for this button is 30pt). |
| label | string | — | The provider's `label`, used only by `AuthScreen`'s dev warning and a custom `social` slot. Apple's button draws and announces its own localized text. Default follows `type`: "Continue with Apple", "Sign in with Apple" or "Sign up with Apple". |
| type | enum | — | Apple's wording: "Sign in with Apple", "Continue with Apple" (default) or "Sign up with Apple". |