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.
 
 
 
 
 

33 lines
897 B

import React from "react";
import { View, Text, Pressable } from "react-native";
import {Entypo} from '@expo/vector-icons';
import { useNavigation } from "@react-navigation/native";
import fontSize from '../../../constants/fontSize';
import tw from "tailwind-rn";
//Color
import Color from "../../../constants/Colors";
const Header = ({ title, route }) => {
const navigation = useNavigation();
return (
<View style={tw("w-full flex flex-row-reverse justify-between mb-0")}>
<Text
style={[
{
color: Color.theme1.light.blue5,
fontFamily : 'bold',
fontSize : fontSize.base
},
]}
>
{title}
</Text>
<Pressable onPress={() => navigation.navigate(route)}>
<Entypo name="chevron-small-left" size={25} color="#196EC0" />
</Pressable>
</View>
);
};
export default Header;