import React from 'react'; import { Dimensions, Image, StyleSheet, TouchableOpacity, View, } from 'react-native'; import ButtonComponent from '../../../components/ButtonComponent'; import {IMAGES} from '../../../values/images'; import AppText from '../../../components/AppText'; const windowWidth = Dimensions.get('window').width; const ProfileUserComponent = ({userDetails, onClose}) => { //console.log('userDetails', userDetails); return ( {`${userDetails.extend_user_full_name}`} {userDetails.position} Thông tin cá nhân Họ và tên {userDetails.extend_user_full_name} Giới tính {userDetails.gender ? 'Nam' : 'Nữ'} Số điện thoại {userDetails.cell_phone} Email {userDetails.email} ); }; const styles = StyleSheet.create({ container: { backgroundColor: 'white', position: 'absolute', padding: 10, bottom: 0, borderTopLeftRadius: 10, borderTopRightRadius: 10, width: '100%', justifyContent: 'flex-end', minHeight: '50%', flex: 1, }, viewContent: { borderWidth: 1, width: windowWidth - 20, borderColor: 'white', backgroundColor: 'white', alignSelf: 'center', marginTop: 10, marginBottom: 10, }, coverImage: { width: windowWidth - 5, height: 120, resizeMode: 'cover', }, viewAvatar: { borderWidth: 5, borderRadius: 60, borderColor: 'white', marginTop: -50, backgroundColor: 'white', }, imgAvatar: { width: 90, height: 90, resizeMode: 'contain', alignSelf: 'center', borderRadius: 60, }, viewInfo: { flexDirection: 'row', borderBottomWidth: 0.2, borderBottomColor: 'grey', marginTop: 5, paddingTop: 5, paddingBottom: 5, }, subTxt: { color: 'black', fontWeight: 'bold', }, }); export default ProfileUserComponent;