wavelength_app/app/(tabs)/index.tsx

28 lines
782 B
TypeScript
Raw Normal View History

2024-10-16 16:50:26 -05:00
import React, { useState } from 'react';
import { StyleSheet } from 'react-native';
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} />
<CountdownView />
2024-10-16 16:50:26 -05:00
</ThemedView>
);
};
export default IndexScreen;
const styles = StyleSheet.create({
container: {
flex: 1,
},
});