import { Pressable, StyleSheet, Text, View } from 'react-native'
import React from 'react'
import { FontAwesome, Feather } from '@expo/vector-icons';
import { useNavigation } from '@react-navigation/native';
const HomeHeader = () => {
const navigation = useNavigation();
const date = new Date();
const hours = date.getHours();
let message;
if (hours < 12) {
message = Good Morning ☀;
} else if (hours < 18) {
message = Good Afternoon ☀;
} else {
message = Good Evening ;
}
return (
<>
{message}
navigation.navigate('inbox')} style={{flexDirection: 'row', gap: 5, alignItems: 'flex-end'}}>
Inbox
navigation.navigate('profile')}>
>
)
}
export default HomeHeader
const styles = StyleSheet.create({
Emoji:{
padding: 20
}
})