add register, account, article, update navigation

This commit is contained in:
2021-04-13 17:17:14 +07:00
parent b296e442a6
commit c5efa8e6d4
12 changed files with 3337 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ import { TextInput } from 'react-native-gesture-handler';
import { useNavigation } from '@react-navigation/native';
export default function Login() {
const navigation = useNavigation();
return (
<SafeAreaView style={styles.container}>
<ScrollView>
@@ -19,7 +20,7 @@ export default function Login() {
</View>
<View style={styles.boxLoginToRegis}>
<Text>Khách hàng mới?</Text>
<TouchableOpacity>
<TouchableOpacity onPress={() => navigation.navigate('Register')}>
<Text style={styles.green}>Đăng </Text>
</TouchableOpacity>
<Text>tại đây</Text>
@@ -38,7 +39,7 @@ export default function Login() {
<Text style={styles.boxLoginForgetPassText}>Quên mật khẩu?</Text>
</TouchableOpacity>
</View>
<TouchableOpacity style={styles.boxLoginSubmit}>
<TouchableOpacity style={styles.boxLoginSubmit} onPress={() => navigation.navigate('AccountHome')}>
<Text style={styles.boxLoginSubmitText}>Đăng nhập</Text>
</TouchableOpacity>
<View style={styles.boxLoginOther}>