Skip to content
Snippets Groups Projects
user.js 1.37 KiB
Newer Older
  • Learn to ignore specific revisions
  • cabelt's avatar
    cabelt committed
    import { Pressable, StyleSheet, Text, Button, View, Appearance, useColorScheme } from "react-native";
    import { Link } from "expo-router";
    import { StatusBar } from 'expo-status-bar';
    import { SafeAreaProvider } from 'react-native-safe-area-context';
    import Animated, { useSharedValue, withTiming, useAnimatedStyle, Easing, } from 'react-native-reanimated';
    
    export default function Page() {
    
    
    johngitt's avatar
    johngitt committed
      
    
    cabelt's avatar
    cabelt committed
    
    
    johngitt's avatar
    johngitt committed
      
    
    cabelt's avatar
    cabelt committed
    
    
        return (
            <SafeAreaProvider>
    
    johngitt's avatar
    johngitt committed
                <View style={styles.container}>
    
    cabelt's avatar
    cabelt committed
                    <Text style={[styles.text, themeTextStyle]}>This is a user page</Text>
                    <Link replace href="/" asChild>
                        <Pressable>
                            <Text style={[styles.text, themeTextStyle]}>Press this to go to home page</Text>
                        </Pressable>
                    </Link>
                    <StatusBar style="auto" />
                </View>
            </SafeAreaProvider>
        );
    }
    
    const styles = StyleSheet.create({
        container: {
            flex: 1,
            backgroundColor: '#fff',
            alignItems: 'center',
            justifyContent: 'center',
        },
        lightContainer: {
            // white
            backgroundColor: '#FFFFFF',
        },
        darkContainer: {
            // black
            backgroundColor: '#000000',
        },
        lightThemeText: {
            // white
            color: '#000000',
        },
        darkThemeText: {
            // black
            color: '#FFFFFF',
        },
    });