cleanup
This commit is contained in:
@@ -15,7 +15,6 @@ export default function App() {
|
|||||||
const [isSplashFinished, setSplashFinished] = useState(false);
|
const [isSplashFinished, setSplashFinished] = useState(false);
|
||||||
const colorScheme = useColorScheme();
|
const colorScheme = useColorScheme();
|
||||||
|
|
||||||
// Fix for white background behind modals
|
|
||||||
const backgroundColor = colorScheme === 'dark' ? AppDarkTheme.colors.background : AppLightTheme.colors.background;
|
const backgroundColor = colorScheme === 'dark' ? AppDarkTheme.colors.background : AppLightTheme.colors.background;
|
||||||
SystemUI.setBackgroundColorAsync(backgroundColor);
|
SystemUI.setBackgroundColorAsync(backgroundColor);
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View, Text, TouchableOpacity, StyleSheet, Platform, useColorScheme, Image } from 'react-native';
|
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 { FontAwesome } from '@expo/vector-icons';
|
||||||
import { COLORS } from '../theme/colors';
|
|
||||||
|
|
||||||
interface SocialButtonsProps {
|
interface SocialButtonsProps {
|
||||||
onGooglePress: () => void;
|
onGooglePress: () => void;
|
||||||
@@ -19,7 +17,7 @@ export default function SocialButtons({ onGooglePress, onFacebookPress, onAppleP
|
|||||||
<Text style={[styles.divider, { color: isDark ? '#a0aec0' : '#888' }]}>Or continue with</Text>
|
<Text style={[styles.divider, { color: isDark ? '#a0aec0' : '#888' }]}>Or continue with</Text>
|
||||||
|
|
||||||
<View style={styles.row}>
|
<View style={styles.row}>
|
||||||
{/* Google Button - Multicolored Image */}
|
{/* Google Button */}
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={[styles.circleButton, { backgroundColor: 'white' }]}
|
style={[styles.circleButton, { backgroundColor: 'white' }]}
|
||||||
onPress={onGooglePress}
|
onPress={onGooglePress}
|
||||||
@@ -31,7 +29,7 @@ export default function SocialButtons({ onGooglePress, onFacebookPress, onAppleP
|
|||||||
/>
|
/>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
|
||||||
{/* Facebook Button - White F on Blue Background */}
|
{/* Facebook Button */}
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={[styles.circleButton, { backgroundColor: '#1877F2', borderWidth: 0 }]}
|
style={[styles.circleButton, { backgroundColor: '#1877F2', borderWidth: 0 }]}
|
||||||
onPress={onFacebookPress}
|
onPress={onFacebookPress}
|
||||||
@@ -39,7 +37,7 @@ export default function SocialButtons({ onGooglePress, onFacebookPress, onAppleP
|
|||||||
<FontAwesome name="facebook" size={24} color="white" />
|
<FontAwesome name="facebook" size={24} color="white" />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
|
||||||
{/* Apple Button - White on Black (Light) / Black on White (Dark) */}
|
{/* Apple Button */}
|
||||||
{Platform.OS === 'ios' && (
|
{Platform.OS === 'ios' && (
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={[
|
style={[
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, { useEffect, useRef, useState, useCallback } from 'react';
|
import React, { useEffect, useRef, useState, useCallback } from 'react';
|
||||||
import { View, StyleSheet, Image, Animated, useColorScheme } from 'react-native';
|
import { View, StyleSheet, Image, Animated, useColorScheme } from 'react-native';
|
||||||
import * as SplashScreen from 'expo-splash-screen';
|
import * as SplashScreen from 'expo-splash-screen';
|
||||||
import { COLORS } from '../theme/colors';
|
|
||||||
|
|
||||||
interface AnimatedSplashProps {
|
interface AnimatedSplashProps {
|
||||||
onFinish: () => void;
|
onFinish: () => void;
|
||||||
|
|||||||
Reference in New Issue
Block a user