import 'react-native-gesture-handler';
import * as React from 'react';
import { useState } from 'react';
import { Alert, Button, Image, StyleSheet, Dimensions, SafeAreaView, ScrollView, TouchableOpacity, Modal, Pressable, Share } from 'react-native';
import Constants from 'expo-constants';
import { Ionicons, FontAwesome } from '@expo/vector-icons';
import { LinearGradient } from 'expo-linear-gradient';
import { useNavigation } from '@react-navigation/native';
import EditScreenInfo from '../components/EditScreenInfo';
import { Text, View, } from '../components/Themed';
import useColorScheme from '../hooks/useColorScheme';
import { TextInput } from 'react-native-gesture-handler';
import { RadioButton, Checkbox } from 'react-native-paper';
import { Picker } from '@react-native-picker/picker';
export default function AccountCoin() {
return (
)
}
function formatCurrency(price: string | number) {
let priceConvert = parseFloat(`${price}`).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1.").toString();
let len = priceConvert.length;
return priceConvert.substring(0, len - 3);
}
const HeaderAccountOrderList = () => {
const navigation = useNavigation();
return (
navigation.goBack()} style={styles.headerAOLBack}>
Naga Xu
10
Bạn có 10 xu trong tài khoản
)
}
const NoteCoin = () => {
return(
Giới thiệu về Naga xu
- Naga Xu là hệ thống tích điểm dành cho Khách hàng của Nagakawa Shop.
- 10 Naga Xu = 1.000 đồng.
- Thời gian sử dụng Naga Xu là 01 năm từ khi bắt đầu đăng ký tài khoản tại website
- Khách hàng nhận Naga Xu khi mua hàng hoặc tương tác comment tại website Nagakawa
)
}
const winWidth = Dimensions.get('window').width; //full width
const winHeight = Dimensions.get('window').height; //full height
const winWidthP10 = winWidth - 20;
const halfWinWidth = winWidth / 2;
const ratio = winWidthP10 / 850; //541 is actual image width
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#fff',
},
headerAOL: {
width: winWidth,
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
position: 'absolute',
top: 50,
left: 0,
paddingHorizontal: 10,
backgroundColor: 'rgba(0,0,0,0)'
},
headerAOLBack: {
width: 40,
height: 40,
flexDirection: 'row',
alignItems: 'center',
},
headerAOLBackIcon: {
fontSize: 24,
color: '#fff',
},
headerAOLSearch: {
width: 40,
height: 40,
flexDirection: 'row',
alignItems: 'center',
},
headerAOLSearchIcon: {
fontSize: 24,
},
headerAOLTitle: {
width: winWidth - 60,
textAlign: 'center',
fontWeight: '700',
color: '#fff',
},
GreenColor: {
color: '#008445',
},
OrangeColor: {
color: '#FE9923',
},
RedColor: {
color: '#D8262F',
},
headerCoin: {
width: winWidth,
position: 'relative',
},
headerCoinBg: {
width: winWidth,
},
headerCoinCtBot: {
width: winWidth,
paddingHorizontal: 10,
position: 'absolute',
bottom: 20,
left: 0,
backgroundColor: 'rgba(0,0,0,0)'
},
headerCoinCount: {
width: '100%',
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: 'rgba(0,0,0,0)'
},
headerCoinCountImg: {
width: 105,
height: 105,
marginRight: 10,
},
headerCoinCountText: {
fontSize: 50,
fontWeight: '700',
marginLeft: 10,
color: '#fff'
},
headerCoinText: {
width: '100%',
textAlign: 'center',
color: '#fff'
},
textBold: {
fontWeight: '700',
color: '#fff',
},
noteCoin: {
width: winWidth,
padding: 10,
},
noteCoinText: {
width: '100%',
marginBottom: 6,
fontWeight: '300',
},
})