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 { PolicyFooter, Social, ShowroomList, FooterInfo } from '../components/footer/footerMain'; 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'; import { ArticleItem } from '../components/article/ArticleItem'; export default function Register() { const [selectedDay, setSelectedDay] = useState(); const [selectedMonth, setSelectedMonth] = useState(); const [selectedYear, setSelectedYear] = useState(); const [selectedProvince, setSelectedProvince] = useState(); const [checked, setChecked] = React.useState('male'); return ( Trang chủ Đăng ký Đăng ký Địa chỉ Email* Tên* Số máy bàn Số di động* Giới tính Nam setChecked('male')} /> Nữ setChecked('female')} /> Ngày sinh setSelectedDay(itemValue) } > setSelectedMonth(itemValue) } > setSelectedYear(itemValue) } > Mật khẩu* Nhập lại mật khẩu* Tỉnh/TP setSelectedProvince(itemValue) } > Đăng ký ) } 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', }, brecrumb: { display: 'flex', width: winWidth, paddingLeft: 10, paddingRight: 10, flexDirection: 'row', height: 18, alignItems: 'center', marginTop: 10, marginBottom: 10, }, brecrumbText: { fontSize: 13, color: '#222', }, brecrumbTextLast: { fontSize: 13, color: '#b7b7b7', }, brecrumbIcon: { fontSize: 13, color: '#222', marginLeft: 6, marginRight: 6 }, boxRegister: { width: winWidth, paddingHorizontal: 10, marginBottom: 20, }, boxRegisterTitle: { fontSize: 18, fontWeight: 'bold', marginBottom: 20, }, registerItem: { marginBottom: 10, }, registerItemText: { fontWeight: 'bold', marginBottom: 5, }, registerItemWn: { color: '#ff0000', fontWeight: 'normal' }, registerItemInput: { width: '100%', height: 40, borderRadius: 5, borderWidth: 1, borderColor: '#e1e1e1', paddingHorizontal: 10, }, registerItemSex: { flexDirection: 'row', alignItems: 'center', }, registerItemSexItem: { flexDirection: 'row', alignItems: 'center', marginRight: 20, }, registerItemSexText: { marginRight: 5, }, registerItemSexRadio: { width: 36, height: 36, borderColor: '#333', borderWidth: 1, borderRadius: 18, }, boxRegisterSubmit: { width: '100%', height: 40, flexDirection: 'row', justifyContent: 'center', alignItems: 'center', backgroundColor: 'red', borderRadius: 5, }, boxRegisterSubmitText: { color: '#fff', fontWeight: 'bold' }, registerBirthDay: { flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }, registerBirthDayItem: { width: '32%' }, picker: { height: 46, width: '100%', }, onePickerItem: { height: 46, color: '#222', fontSize: 14, textAlign: 'center', width: '100%', }, })