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