From da9ba3094cd00e99d1accd8be286e72af3cf0950 Mon Sep 17 00:00:00 2001 From: Joseph D'Souza Date: Wed, 11 Feb 2026 13:03:22 +0100 Subject: [PATCH] cleanup --- mobile/App.tsx | 1 - mobile/src/components/SocialButtons.tsx | 32 ++++++++++++------------- mobile/src/screens/AnimatedSplash.tsx | 21 ++++++++-------- 3 files changed, 25 insertions(+), 29 deletions(-) diff --git a/mobile/App.tsx b/mobile/App.tsx index 8047068..da93321 100644 --- a/mobile/App.tsx +++ b/mobile/App.tsx @@ -15,7 +15,6 @@ export default function App() { const [isSplashFinished, setSplashFinished] = useState(false); const colorScheme = useColorScheme(); - // Fix for white background behind modals const backgroundColor = colorScheme === 'dark' ? AppDarkTheme.colors.background : AppLightTheme.colors.background; SystemUI.setBackgroundColorAsync(backgroundColor); diff --git a/mobile/src/components/SocialButtons.tsx b/mobile/src/components/SocialButtons.tsx index c64dbbd..0e3b701 100644 --- a/mobile/src/components/SocialButtons.tsx +++ b/mobile/src/components/SocialButtons.tsx @@ -1,8 +1,6 @@ import React from 'react'; import { View, Text, TouchableOpacity, StyleSheet, Platform, useColorScheme, Image } from 'react-native'; -import * as AppleAuthentication from 'expo-apple-authentication'; import { FontAwesome } from '@expo/vector-icons'; -import { COLORS } from '../theme/colors'; interface SocialButtonsProps { onGooglePress: () => void; @@ -17,35 +15,35 @@ export default function SocialButtons({ onGooglePress, onFacebookPress, onAppleP return ( Or continue with - + - {/* Google Button - Multicolored Image */} - - - {/* Facebook Button - White F on Blue Background */} - - {/* Apple Button - White on Black (Light) / Black on White (Dark) */} + {/* Apple Button */} {Platform.OS === 'ios' && ( - @@ -89,7 +87,7 @@ const styles = StyleSheet.create({ backgroundColor: 'white', }, facebook: { - backgroundColor: 'white', + backgroundColor: 'white', }, appleLight: { backgroundColor: 'white', diff --git a/mobile/src/screens/AnimatedSplash.tsx b/mobile/src/screens/AnimatedSplash.tsx index f168727..e831a69 100644 --- a/mobile/src/screens/AnimatedSplash.tsx +++ b/mobile/src/screens/AnimatedSplash.tsx @@ -1,7 +1,6 @@ import React, { useEffect, useRef, useState, useCallback } from 'react'; import { View, StyleSheet, Image, Animated, useColorScheme } from 'react-native'; import * as SplashScreen from 'expo-splash-screen'; -import { COLORS } from '../theme/colors'; interface AnimatedSplashProps { onFinish: () => void; @@ -36,7 +35,7 @@ export default function AnimatedSplash({ onFinish }: AnimatedSplashProps) { if (isAppReady && isLayoutReady) { // Hide native splash screen SplashScreen.hideAsync(); - + // Start fade out Animated.timing(fadeAnim, { toValue: 0, @@ -49,24 +48,24 @@ export default function AnimatedSplash({ onFinish }: AnimatedSplashProps) { }, [isAppReady, isLayoutReady]); return ( - -