All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m7s
25 lines
521 B
TypeScript
25 lines
521 B
TypeScript
import React from "react";
|
|
import { StyleSheet, Text, View } from "react-native";
|
|
import { colors, globalStyles } from "../stlyes/global";
|
|
|
|
export default function HomeHeader() {
|
|
const currentDate = new Date().toLocaleDateString("en-US", {
|
|
weekday: "long",
|
|
month: "long",
|
|
day: "numeric",
|
|
});
|
|
return (
|
|
<View >
|
|
<Text style={styles.date}>{currentDate}</Text>
|
|
</View>
|
|
);
|
|
}
|
|
const styles = StyleSheet.create({
|
|
date: {
|
|
fontSize: 14,
|
|
color: colors.textSecondary,
|
|
marginTop: 4,
|
|
marginBottom: 30,
|
|
},
|
|
});
|