Footer.js 2.81 KB
Newer Older
Giang Tran committed
1 2 3 4 5
import React from 'react';
import {View, Text, StyleSheet, Image} from 'react-native';
import Icon from 'react-native-vector-icons/AntDesign';
import R from '../../assets/R';
import {WIDTHXD, HEIGHTXD, getFontXD, toPriceVnd} from '../../Config/Functions';
Giang Tran committed
6
import AppText from '../../components/AppText';
Giang Tran committed
7 8 9 10 11 12 13 14
const Footer = (props) => {
  return (
    <View style={{marginHorizontal: 20, marginTop: 10}}>
      <View style={styles.container}>
        <View style={styles.wraperImg}>
          <Image source={R.images.moneyteam} style={styles.imgIcon} />
        </View>
        <View style={{flex: 1, paddingHorizontal: 15}}>
Giang Tran committed
15
          <AppText i18nKey={'RevenueTeam'} style={styles.txt}></AppText>
Giang Tran committed
16
          <Text style={styles.txtMoney}>0 Đ</Text>
Giang Tran committed
17 18 19 20 21 22 23 24 25 26 27
        </View>
        <View style={{justifyContent: 'center', alignItems: 'center'}}>
          <Icon name={'right'} size={20} color={'#707070'} />
        </View>
      </View>

      <View style={styles.container}>
        <View style={styles.wraperImg}>
          <Image source={R.images.moneysupport} style={styles.imgIcon} />
        </View>
        <View style={{flex: 1, paddingHorizontal: 15}}>
Giang Tran committed
28
          <AppText i18nKey={'RevenueDonors'} style={styles.txt}></AppText>
Giang Tran committed
29
          <Text style={styles.txtMoney}> 0 Đ</Text>
Giang Tran committed
30 31 32 33 34 35 36 37 38 39 40
        </View>
        <View style={{justifyContent: 'center', alignItems: 'center'}}>
          <Icon name={'right'} size={20} color={'#707070'} />
        </View>
      </View>

      <View style={styles.container}>
        <View style={styles.wraperImg}>
          <Image source={R.images.moneyinvest} style={styles.imgIcon} />
        </View>
        <View style={{flex: 1, paddingHorizontal: 15}}>
Giang Tran committed
41
          <AppText i18nKey={'Invset'} style={styles.txt}></AppText>
Giang Tran committed
42
          <Text style={styles.txtMoney}>0 Đ</Text>
Giang Tran committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
        </View>
        <View style={{justifyContent: 'center', alignItems: 'center'}}>
          <Icon name={'right'} size={20} color={'#707070'} />
        </View>
      </View>
      <View style={{height: 20}} />
    </View>
  );
};

export default Footer;

const styles = StyleSheet.create({
  imgIcon: {
    width: WIDTHXD(150),
    height: HEIGHTXD(150),
    resizeMode: 'contain',
  },
  wraperImg: {
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#DFE7F5',
    width: HEIGHTXD(200),
    height: HEIGHTXD(200),
    borderRadius: 10,
  },
  container: {
    backgroundColor: R.colors.white,
    padding: 10,
    borderRadius: 10,
    flexDirection: 'row',
    shadowColor: '#000',
    shadowOffset: {
      width: 0,
      height: 1,
    },
    shadowOpacity: 0.25,
    shadowRadius: 2.84,
    elevation: 3,
    justifyContent: 'space-between',
    marginBottom: 10,
  },
  txt: {
    color: '#8F909E',
    fontSize: getFontXD(36),
  },
  txtMoney: {
    fontSize: getFontXD(42),
    color: R.colors.black,
    marginTop: 5,
  },
});