diff --git a/src/components/auth/AppleNativeAuthScreen.tsx b/src/components/auth/AppleNativeAuthScreen.tsx
index b979409..c409951 100644
--- a/src/components/auth/AppleNativeAuthScreen.tsx
+++ b/src/components/auth/AppleNativeAuthScreen.tsx
@@ -19,6 +19,8 @@ import * as Haptics from 'expo-haptics';
import AsyncStorage from '@react-native-async-storage/async-storage';
import AppleContactAuthModal from './AppleContactAuthModal';
import AppleBottomTray from '../ui/AppleBottomTray';
+import * as AppleAuthentication from 'expo-apple-authentication';
+import { AppleAuthenticationButton } from 'expo-apple-authentication';
const { width: SCREEN_WIDTH } = Dimensions.get('window');
@@ -31,6 +33,7 @@ export default function AppleNativeAuthScreen({ onAuthSuccess }: AppleNativeAuth
const [showMoreOptions, setShowMoreOptions] = useState(false);
const [showEmailModal, setShowEmailModal] = useState(false);
const [isLoading, setIsLoading] = useState(false);
+ const [appleAuthAvailable, setAppleAuthAvailable] = useState(false);
// Animation values
const fadeAnim = useRef(new Animated.Value(0)).current;
@@ -65,6 +68,10 @@ export default function AppleNativeAuthScreen({ onAuthSuccess }: AppleNativeAuth
]).start();
}, []);
+ useEffect(() => {
+ AppleAuthentication.isAvailableAsync().then(setAppleAuthAvailable);
+ }, []);
+
const PASSKEY_KEY = 'interspace_has_passkey';
const checkPasskey = async () => {
@@ -175,18 +182,15 @@ export default function AppleNativeAuthScreen({ onAuthSuccess }: AppleNativeAuth
{/* Sign in with Apple - Secondary Option */}
-
-
-
- Sign in with Apple
-
-
+ {appleAuthAvailable && (
+
+ )}
{/* More Options */}