2024-10-16 16:50:26 -05:00
|
|
|
import React, { useState } from 'react';
|
|
|
|
import { StyleSheet } from 'react-native';
|
2024-10-18 13:13:43 -05:00
|
|
|
import { ThemedView } from '@/components/theme/Theme';
|
2024-10-16 16:50:26 -05:00
|
|
|
import UserInfo from '@/components/home/UserInfo';
|
2024-10-18 12:39:54 -05:00
|
|
|
import RelationshipView from '@/components/home/RelationshipView';
|
2024-10-29 11:23:29 -05:00
|
|
|
import CountdownView from '@/components/home/Countdown';
|
2024-10-16 16:50:26 -05:00
|
|
|
|
|
|
|
const IndexScreen = () => {
|
|
|
|
const [pfpUrl, setPfpUrl] = useState<string | null>(null);
|
|
|
|
const handlePfpUpdate = (newPfpUrl: string) => {
|
|
|
|
setPfpUrl(newPfpUrl);
|
|
|
|
};
|
|
|
|
return (
|
|
|
|
<ThemedView style={styles.container}>
|
|
|
|
<UserInfo onPfpUpdate={handlePfpUpdate} />
|
2024-10-18 12:39:54 -05:00
|
|
|
<RelationshipView pfpUrl={pfpUrl} />
|
2024-10-30 15:03:53 -05:00
|
|
|
<CountdownView />
|
2024-10-16 16:50:26 -05:00
|
|
|
</ThemedView>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
export default IndexScreen;
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
container: {
|
|
|
|
flex: 1,
|
|
|
|
},
|
|
|
|
});
|