You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LeftOvers/LeftOvers/navigation/Utils.tsx

23 lines
526 B

import React, { useContext } from 'react';
import { Text, StyleSheet } from 'react-native';
import ColorContext from '../theme/ColorContext';
export function HeaderTitle(props) {
const colors = useContext(ColorContext).colors
const styles = StyleSheet.create({
headerTitle: {
fontSize: 20,
fontWeight: "bold",
color: colors.cardDetail,
}
})
return (
<Text
style={styles.headerTitle}>
{props.title}
</Text>
)
}