Commit 7964f8ab by tungnq

Merge branch 'tung_ui' of http://git.dcv.vn/tungnq/AppUms_Student into tung_ui

parents 1a35caa5 b9d66ddb
import { Image, StyleSheet, TextInput, View } from "react-native"; import { Image, SafeAreaView, StatusBar, StyleSheet, TextInput, View } from "react-native";
import React from "react"; import React from "react";
import R from "../../assets/R"; import R from "../../assets/R";
const customHeader = (props) => { const customHeader = (props) => {
...@@ -39,7 +39,7 @@ const customHeader = (props) => { ...@@ -39,7 +39,7 @@ const customHeader = (props) => {
style={styles.input} style={styles.input}
/> />
</View> </View>
</View> </SafeAreaView>
); );
}; };
...@@ -49,7 +49,6 @@ const styles = StyleSheet.create({ ...@@ -49,7 +49,6 @@ const styles = StyleSheet.create({
container: { container: {
flexDirection: "row", flexDirection: "row",
marginHorizontal: 15, marginHorizontal: 15,
maxHeight: 40,
}, },
size_box:{ size_box:{
width: '20%', width: '20%',
...@@ -65,6 +64,7 @@ const styles = StyleSheet.create({ ...@@ -65,6 +64,7 @@ const styles = StyleSheet.create({
borderColor: R.colors.gray280, borderColor: R.colors.gray280,
borderRadius: 100, borderRadius: 100,
borderWidth: 1, borderWidth: 1,
maxHeight:40,
paddingHorizontal: 14, paddingHorizontal: 14,
paddingVertical: 5 paddingVertical: 5
}, },
......
...@@ -8,9 +8,18 @@ import { ...@@ -8,9 +8,18 @@ import {
ScrollView, ScrollView,
TouchableWithoutFeedback, TouchableWithoutFeedback,
Keyboard, Keyboard,
SafeAreaView,
Image, Image,
StatusBar, // FEATURE: Import StatusBar để control status bar StatusBar, // FEATURE: Import StatusBar để control status bar
Platform,
SafeAreaView, // FEATURE: Check platform iOS/Android
} from "react-native";
import HeaderCus from "../home/header";
import R from "../../assets/R";
import I18n from "../../helper/i18/i18n";
import ItemGrid from "./item";
import styles from "./style";
import { useNavigation } from "@react-navigation/native";
import * as SCREENNAME from "../../routers/ScreenNames";
Platform, // FEATURE: Check platform iOS/Android Platform, // FEATURE: Check platform iOS/Android
} from 'react-native'; } from 'react-native';
import HeaderCus from '../home/header'; import HeaderCus from '../home/header';
...@@ -110,6 +119,27 @@ const HomeView = props => { ...@@ -110,6 +119,27 @@ const HomeView = props => {
</View> </View>
); );
return (
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
<View style={styles.container_body}>
<ImageBackground
source={R.images.igBackgroundSlider}
style={[styles.background_header, {
}]}
>
<HeaderCus
pathLogo={R.images.igLogo}
width={75}
height={36}
textInput={R.colors.white}
backgroundInput={R.colors.backgroundInputSearch}
textLabel={I18n.t("Search")}
textColorLabel={R.colors.white}
/>
const renderBody = () => { const renderBody = () => {
return ( return (
<View style={[{flex: 1}]}> <View style={[{flex: 1}]}>
...@@ -134,6 +164,20 @@ const HomeView = props => { ...@@ -134,6 +164,20 @@ const HomeView = props => {
showsVerticalScrollIndicator={false} showsVerticalScrollIndicator={false}
style={styles.scroll} style={styles.scroll}
bounces={false} bounces={false}
overScrollMode="never"
>
{renderMenuSection("Học tập", menuDataStudy)}
{renderMenuSection("Cá nhân", menuDataIndividual)}
{renderMenuSection("Dịch vụ trực tuyến", menuDataOnlineSer)}
</ScrollView>
</View>
{renderProfileCard()}
</ImageBackground>
<ScrollView
showsVerticalScrollIndicator={false}
style={styles.scroll}
bounces={false}
overScrollMode="never"> overScrollMode="never">
{renderMenuSection('Học tập', menuDataStudy)} {renderMenuSection('Học tập', menuDataStudy)}
{renderMenuSection('Cá nhân', menuDataIndividual)} {renderMenuSection('Cá nhân', menuDataIndividual)}
...@@ -151,7 +195,6 @@ const HomeView = props => { ...@@ -151,7 +195,6 @@ const HomeView = props => {
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}> <TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
{renderBody()} {renderBody()}
</TouchableWithoutFeedback> </TouchableWithoutFeedback>
</SafeAreaView>
); );
}; };
......
...@@ -18,7 +18,7 @@ const ProfileView = (props) => { ...@@ -18,7 +18,7 @@ const ProfileView = (props) => {
const { phone, setPhone, cmnd, setCmnd, bank, setBank } = props; const { phone, setPhone, cmnd, setCmnd, bank, setBank } = props;
const IconCamera = R.images.icCamera; const IconCamera = R.images.icCamera;
return ( return (
<View style={{ flex: 1, }}> <View style={{ flex: 1, backgroundColor:R.colors.white}}>
<Header title={"Hồ sơ cá nhân"} isBack /> <Header title={"Hồ sơ cá nhân"} isBack />
<ScrollView showsVerticalScrollIndicator={false} style={{ flex: 1 }}> <ScrollView showsVerticalScrollIndicator={false} style={{ flex: 1 }}>
<View style={styles.container}> <View style={styles.container}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment