Newer
Older
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() {
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<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',
},
});