import * as React from 'react';
import { useState } from 'react';
import { Alert, Button, Image, StyleSheet, Dimensions, SafeAreaView, ScrollView, TouchableOpacity, ImageBackground, Modal, Pressable } from 'react-native';
import { LinearGradient } from 'expo-linear-gradient';
import { Ionicons, FontAwesome } from '@expo/vector-icons';
import EditScreenInfo from '../components/EditScreenInfo';
import { Text, View } from '../components/Themed';
import { TextInput } from 'react-native-gesture-handler';
import { useNavigation } from '@react-navigation/native';
export default function AccountIndex() {
const navigation = useNavigation();
return (
);
}
const HeaderAccountIndex = () => {
const navigation = useNavigation();
return (
Chào mừng đến với Nagakawa, Đăng nhập ngay!
navigation.navigate('Login')} style={styles.headerAccountIndexLogin}>
Đăng nhập
navigation.navigate('Register')} style={styles.headerAccountIndexRegis}>
Đăng ký
)
}
const ListContentAccount = () => {
return (
Đơn hàng của tôi
Xem tất cả
Sản phẩm bạn đã mua
Sản phẩm bạn đã xem
Xem tất cả
Sản phẩm yêu thích
Sản phẩm mua sau
Quản lý Xu của tôi
Tài khoản
Trung tậm trợ giúp
)
}
const winWidth = Dimensions.get('window').width; //full width
const winHeight = Dimensions.get('window').height; //full height
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
headerAccountIndex: {
width: winWidth,
position: 'relative',
},
headerAccountIndexImg: {
width: '100%',
height: 122,
},
headerAccountIndexTitle: {
width: '100%',
textAlign: 'center',
fontSize: 12,
color: '#fff',
position: 'absolute',
top: 45,
left: 0,
},
headerAccountIndexBt: {
width: '100%',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
position: 'absolute',
left: 0,
bottom: 16,
backgroundColor: 'rgba(0,0,0,0)',
},
headerAccountIndexLogin: {
width: 84,
height: 32,
backgroundColor: '#fff',
borderColor: '#fff',
borderWidth: 1,
borderRadius: 3,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
marginRight: 5,
},
headerAccountIndexLoginText: {
fontWeight: '700',
color: '#D8262F'
},
headerAccountIndexRegis: {
width: 84,
height: 32,
backgroundColor: 'rgba(0,0,0,0)',
borderColor: '#fff',
borderWidth: 1,
borderRadius: 3,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
marginLeft: 5,
},
headerAccountIndexRegisText: {
fontWeight: '700',
color: '#fff'
},
boxListItemAcc: {
width: winWidth,
backgroundColor: '#f2f2f2',
},
boxListItemAccList: {
width: '100%',
backgroundColor: '#fff',
marginBottom: 10,
},
borderBot: {
borderBottomColor: '#e1e1e1',
borderBottomWidth: 1,
},
boxListItemAccItem: {
width: '100%',
paddingHorizontal: 10,
},
boxListItemAccBt: {
width: '100%',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
height: 48,
},
boxListItemAccItemLeft: {
flexDirection: 'row',
alignItems: 'center',
},
boxListItemAccItemImg: {
width: 20,
marginRight: 10,
},
boxListItemAccItemLeftText: {
fontWeight: '500',
},
boxListItemAccItemRight: {
flexDirection: 'row',
alignItems: 'center',
},
boxListItemAccItemRightText: {
marginRight: 10,
},
boxListItemAccItemIcon: {
fontSize: 24,
color: '#777'
},
});