29 lines
607 B
TypeScript
29 lines
607 B
TypeScript
import React from 'react';
|
|
import { StyleSheet, Text, View } from 'react-native';
|
|
import { COLORS, FONTS } from '../constants/theme';
|
|
|
|
interface HeaderProps {
|
|
title: string;
|
|
}
|
|
|
|
export const Header: React.FC<HeaderProps> = ({ title }) => {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.title}>{title}</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
backgroundColor: COLORS.primary,
|
|
padding: 20,
|
|
paddingTop: 50,
|
|
alignItems: 'center',
|
|
},
|
|
title: {
|
|
fontSize: FONTS.large,
|
|
fontWeight: 'bold',
|
|
color: COLORS.card,
|
|
},
|
|
});
|