Commit 5c26a7f0 by Giang Tran

Merge branch 'dev_phase2' of http://git.dcv.vn/tdgiangdev/InvestCustomer into dev_phase2

parents c02924b5 fa86b93c
......@@ -11,9 +11,12 @@ import {
import {getFontXD, HEIGHTXD, WIDTHXD} from '../../Config/Functions';
import R from '../../assets/R';
import ItemPrice from './ItemPrice';
import {PRODUCTDETAIL} from '../../routers/ScreenNames';
import {useNavigation} from '@react-navigation/native';
const PriceListView = (props) => {
const {setFilterId, filters, dataPrice, filterId} = props;
const navigate = useNavigation();
return (
<View style={{flex: 1}}>
<View style={styles.headerContainer}>
......@@ -41,24 +44,32 @@ const PriceListView = (props) => {
data={dataPrice}
ListHeaderComponent={() =>
<View style={[styles.container]}>
<View style={[styles.headerContent, {flex: 0.3, justifyContent: 'flex-start', alignItems: 'center',}]}>
<View style={[styles.headerContent, {
flex: 0.3,
justifyContent: 'flex-start',
alignItems: 'center',
}]}>
<Text>Tên</Text>
<Image source={R.images.iconSort} style={styles.imgIcon} />
<Image source={R.images.iconSort} style={styles.imgIcon}/>
</View>
<View style={[styles.headerContent, {flex: 1.5}]}>
<Text>T l thay đổi</Text>
<Image source={R.images.iconSort} style={styles.imgIcon} />
<Image source={R.images.iconSort} style={styles.imgIcon}/>
</View>
<View style={[styles.headerContent]}>
<Text>Giá m/đóng</Text>
<Image source={R.images.iconSort} style={styles.imgIcon} />
<Image source={R.images.iconSort} style={styles.imgIcon}/>
</View>
<View style={[styles.headerContent]}>
<Text>Giá cao/thp</Text>
<Image source={R.images.iconSort} style={styles.imgIcon} />
<Image source={R.images.iconSort} style={styles.imgIcon}/>
</View>
</View>}
renderItem={({item}) => <ItemPrice item={item}/>}
renderItem={({item}) => <ItemPrice item={item}
onPress={() => navigate.navigate(PRODUCTDETAIL, {
id: item.id,
name: item.name,
})}/>}
/>
</View>
);
......@@ -95,7 +106,7 @@ const styles = StyleSheet.create({
flex: 1,
flexDirection: 'row',
marginHorizontal: WIDTHXD(30),
marginBottom: HEIGHTXD(10)
marginBottom: HEIGHTXD(10),
},
headerContent: {
......
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