|
|
|
@ -1,7 +1,10 @@ |
|
|
|
|
import { View, Text, Dimensions, ImageBackground } from "react-native"; |
|
|
|
|
import { connect } from "react-redux"; |
|
|
|
|
|
|
|
|
|
//style
|
|
|
|
|
import tw from "tailwind-rn"; |
|
|
|
|
import fontSize from "../constants/fontSize"; |
|
|
|
|
import Colors from "../constants/Colors"; |
|
|
|
|
|
|
|
|
|
const height = Dimensions.get("window").height; |
|
|
|
|
|
|
|
|
@ -10,7 +13,10 @@ function Header({ title, description, background }) { |
|
|
|
|
<View |
|
|
|
|
style={[ |
|
|
|
|
tw(`w-full flex items-center pb-7`), |
|
|
|
|
{ height: height / 4.5, backgroundColor: "#E9F0F7" }, |
|
|
|
|
{ |
|
|
|
|
height: height / 4.5, |
|
|
|
|
backgroundColor: Colors.theme1["light"].greenCF + "0F", |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
|
<ImageBackground |
|
|
|
@ -20,14 +26,23 @@ function Header({ title, description, background }) { |
|
|
|
|
></ImageBackground> |
|
|
|
|
<Text |
|
|
|
|
style={[ |
|
|
|
|
{ fontSize: fontSize.xl, color: "#196EC0", fontFamily: "bold" }, |
|
|
|
|
{ |
|
|
|
|
fontSize: fontSize.xl, |
|
|
|
|
color: Colors.theme1["light"].greenCF, |
|
|
|
|
fontFamily: "bold", |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
|
{title} |
|
|
|
|
</Text> |
|
|
|
|
<Text |
|
|
|
|
style={[ |
|
|
|
|
{ color: "#86A0B9", fontSize: fontSize.tiny, fontFamily: "regular" }, |
|
|
|
|
{ |
|
|
|
|
color: Colors.theme1["light"].greenCF, |
|
|
|
|
fontSize: fontSize.sm, |
|
|
|
|
fontFamily: "regular", |
|
|
|
|
marginTop: 5 |
|
|
|
|
}, |
|
|
|
|
]} |
|
|
|
|
> |
|
|
|
|
{description} |
|
|
|
@ -37,7 +52,7 @@ function Header({ title, description, background }) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state) => ({ |
|
|
|
|
mobile: state.publicApi.mobile |
|
|
|
|
}) |
|
|
|
|
mobile: state.publicApi.mobile, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(Header); |
|
|
|
|