37 lines
948 B
TypeScript
37 lines
948 B
TypeScript
![]() |
import React from 'react';
|
||
|
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
||
|
|
||
|
export function MainNav() {
|
||
|
return (
|
||
|
<View style={styles.container}>
|
||
|
<TouchableOpacity style={styles.navItem}>
|
||
|
<Text style={styles.navText}>Overview</Text>
|
||
|
</TouchableOpacity>
|
||
|
<TouchableOpacity style={styles.navItem}>
|
||
|
<Text style={styles.navText}>Customers</Text>
|
||
|
</TouchableOpacity>
|
||
|
<TouchableOpacity style={styles.navItem}>
|
||
|
<Text style={styles.navText}>Products</Text>
|
||
|
</TouchableOpacity>
|
||
|
<TouchableOpacity style={styles.navItem}>
|
||
|
<Text style={styles.navText}>Settings</Text>
|
||
|
</TouchableOpacity>
|
||
|
</View>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
const styles = StyleSheet.create({
|
||
|
container: {
|
||
|
flexDirection: 'row',
|
||
|
justifyContent: 'space-around',
|
||
|
alignItems: 'center',
|
||
|
paddingVertical: 10,
|
||
|
},
|
||
|
navItem: {
|
||
|
padding: 10,
|
||
|
},
|
||
|
navText: {
|
||
|
fontSize: 16,
|
||
|
},
|
||
|
});
|