69 lines
1.4 KiB
TypeScript
69 lines
1.4 KiB
TypeScript
import React from "react";
|
|
import { Pressable, StyleSheet, Text, View } from "react-native";
|
|
import { Ionicons } from "@expo/vector-icons";
|
|
import { useRouter } from "expo-router";
|
|
|
|
import { AuthColors } from "../constants/colors";
|
|
import {
|
|
moderateScale,
|
|
scale,
|
|
verticalScale,
|
|
} from "react-native-size-matters";
|
|
export default function LoginHeader() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Pressable
|
|
accessibilityRole="button"
|
|
accessibilityLabel="Go Back"
|
|
hitSlop={10}
|
|
onPress={() => router.back()}
|
|
style={styles.backButton}
|
|
>
|
|
<Ionicons
|
|
name="arrow-back"
|
|
size={moderateScale(24)}
|
|
/>
|
|
</Pressable>
|
|
|
|
<View style={styles.textContainer}>
|
|
<Text style={styles.title}>Welcome Back!</Text>
|
|
|
|
<Text style={styles.subtitle}>
|
|
Login to continue
|
|
</Text>
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
marginTop: verticalScale(8),
|
|
marginBottom: verticalScale(32),
|
|
},
|
|
|
|
backButton: {
|
|
width: scale(40),
|
|
height: scale(40),
|
|
justifyContent: "center",
|
|
marginBottom: verticalScale(28),
|
|
},
|
|
|
|
textContainer: {
|
|
gap: moderateScale(8),
|
|
},
|
|
|
|
title: {
|
|
fontSize: moderateScale(32),
|
|
fontWeight: "700",
|
|
color: AuthColors.textPrimary,
|
|
},
|
|
|
|
subtitle: {
|
|
fontSize: 16,
|
|
color: AuthColors.textSecondary,
|
|
fontWeight: "500",
|
|
},
|
|
}); |