-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
67 lines (64 loc) · 1.63 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import 'expo-router/entry';
/* import React from 'react';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, View, TextInput, ScrollView, SafeAreaView, TouchableOpacity } from 'react-native';
import { Ionicons } from '@expo/vector-icons';
import NavBar from './components/NavBar';
import Listing from './components/Listing';
export default function App() {
return (
<SafeAreaView style={styles.container}>
<View style={styles.searchContainer}>
<TextInput style={styles.searchBar}
placeholder="Find your next ballgown..."
/>
<TouchableOpacity>
<Ionicons name="filter" size={24} color="black" style={styles.filterIcon} />
</TouchableOpacity>
</View>
<ScrollView contentContainerStyle={styles.listingsContainer}>
<View style={styles.listingRow}>
<Listing />
<Listing />
</View>
<View style={styles.listingRow}>
<Listing />
<Listing />
</View>
</ScrollView>
<NavBar />
<StatusBar style="auto" />
</SafeAreaView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
},
searchContainer: {
flexDirection: 'row',
alignItems: 'center',
padding: 10,
},
searchBar: {
flex: 1,
height: 40,
borderColor: '#ccc',
borderWidth: 1,
borderRadius: 5,
paddingHorizontal: 10,
},
filterIcon: {
marginLeft: 10,
},
listingsContainer: {
flex: 1,
padding: 10,
},
listingRow: {
flexDirection: 'row',
justifyContent: 'space-between',
marginBottom: 10,
},
}); */