|
1 | | -import { View, Text } from 'react-native'; |
| 1 | +import { View, Text, StyleSheet, Pressable } from 'react-native'; |
2 | 2 |
|
3 | 3 | export default function ProfileScreen() { |
4 | 4 | return ( |
5 | | - <View> |
6 | | - <Text>profile Screen</Text> |
| 5 | + <View style={styles.container}> |
| 6 | + |
| 7 | + {/* Header */} |
| 8 | + <View style={styles.header}> |
| 9 | + <Text style={styles.title}>Profile</Text> |
| 10 | + </View> |
| 11 | + |
| 12 | + {/* User info */} |
| 13 | + <View style={styles.userCard}> |
| 14 | + <View style={styles.avatar} /> |
| 15 | + <View> |
| 16 | + <Text style={styles.name}>Your Name</Text> |
| 17 | + <Text style={styles.subText}>+91 XXXXX XXXXX</Text> |
| 18 | + </View> |
| 19 | + </View> |
| 20 | + |
| 21 | + {/* Actions */} |
| 22 | + <View style={styles.section}> |
| 23 | + <Pressable style={styles.row}> |
| 24 | + <Text style={styles.rowText}>Edit Profile</Text> |
| 25 | + </Pressable> |
| 26 | + |
| 27 | + <Pressable style={styles.row}> |
| 28 | + <Text style={styles.rowText}>Settings</Text> |
| 29 | + </Pressable> |
| 30 | + |
| 31 | + <Pressable style={styles.row}> |
| 32 | + <Text style={styles.rowText}>Help & Support</Text> |
| 33 | + </Pressable> |
| 34 | + </View> |
| 35 | + |
7 | 36 | </View> |
8 | 37 | ); |
9 | 38 | } |
| 39 | +const styles = StyleSheet.create({ |
| 40 | + container: { |
| 41 | + flex: 1, |
| 42 | + padding: 16, |
| 43 | + backgroundColor: '#fff', |
| 44 | + }, |
| 45 | + header: { |
| 46 | + marginBottom: 24, |
| 47 | + }, |
| 48 | + title: { |
| 49 | + fontSize: 22, |
| 50 | + fontWeight: '600', |
| 51 | + }, |
| 52 | + userCard: { |
| 53 | + flexDirection: 'row', |
| 54 | + alignItems: 'center', |
| 55 | + marginBottom: 32, |
| 56 | + }, |
| 57 | + avatar: { |
| 58 | + width: 56, |
| 59 | + height: 56, |
| 60 | + borderRadius: 28, |
| 61 | + backgroundColor: '#e5e7eb', |
| 62 | + marginRight: 16, |
| 63 | + }, |
| 64 | + name: { |
| 65 | + fontSize: 16, |
| 66 | + fontWeight: '600', |
| 67 | + }, |
| 68 | + subText: { |
| 69 | + fontSize: 14, |
| 70 | + color: '#6b7280', |
| 71 | + marginTop: 2, |
| 72 | + }, |
| 73 | + section: { |
| 74 | + borderTopWidth: 0.5, |
| 75 | + borderTopColor: '#e5e7eb', |
| 76 | + }, |
| 77 | + row: { |
| 78 | + paddingVertical: 16, |
| 79 | + borderBottomWidth: 0.5, |
| 80 | + borderBottomColor: '#e5e7eb', |
| 81 | + }, |
| 82 | + rowText: { |
| 83 | + fontSize: 15, |
| 84 | + }, |
| 85 | +}); |
| 86 | + |
0 commit comments