Skip to content

Commit ffbed0b

Browse files
committed
Improved home screen look and functionaility
1 parent 4331a7e commit ffbed0b

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

reducers/dbjabReducer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ const dbjabReducer = (state = INITIAL_STATE, action) => {
146146
[
147147
{
148148
title: 'On Now',
149-
eventList: [ { key:1, gigDetails: 'Problems retrieving gig info, please try again!' }]
149+
data: [ { key:1, gigDetails: 'Problems retrieving gig info, please try again!' }]
150150
},
151151
{
152152
title: 'Up Next',
153-
eventList: [ { key:1, gigDetails: 'Problems retrieving gig info, please try again!' }]
153+
data: [ { key:2, gigDetails: 'Problems retrieving gig info, please try again!' }]
154154
}
155155
]
156156
}

screens/HomeScreen.js

+15-7
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ class HomeScreen extends React.Component {
9393
stickySectionHeadersEnabled={true}
9494
renderSectionHeader={({section}) => {
9595
return (
96-
<View>
96+
<View style={styles.sectionHeader}>
9797
<Text style={styles.homePageSectionTitles}>{section.title}</Text>
9898
</View>
9999
)
100100
}}
101101
renderItem={({item}) => {
102102
return (
103-
<View style={styles.OnNoworOnNext}>
104103
<ListItem
104+
containerStyle={styles.lessPadding}
105105
leftIcon={{
106106
type: 'ionicon',
107107
name: Platform.OS === 'ios' ? 'ios-microphone' : 'md-microphone',
@@ -110,7 +110,6 @@ class HomeScreen extends React.Component {
110110
title={item.gigDetails}
111111
titleStyle={styles.OnNoworOnNext}
112112
/>
113-
</View>
114113
)
115114
}}/>
116115
</View>
@@ -151,9 +150,11 @@ const styles = StyleSheet.create({
151150
},
152151
homePageSectionTitles: {
153152
color: '#1D6292',
153+
fontSize: 20,
154+
fontWeight: 'bold',
154155
marginTop: 5,
155-
padding: 3,
156-
fontSize: 18
156+
marginBottom: 5,
157+
marginLeft: 10
157158
},
158159
OnNoworOnNext: {
159160
color: '#1D6292',
@@ -162,8 +163,15 @@ const styles = StyleSheet.create({
162163
flex: 1,
163164
marginTop: 15
164165
},
165-
eventsOnNowStyle: {
166-
height: 200
166+
sectionHeader: {
167+
backgroundColor: '#F0AE1A',
168+
borderStyle: 'solid',
169+
borderWidth: 1,
170+
borderColor: '#1D6292'
171+
},
172+
lessPadding: {
173+
paddingTop: 5,
174+
paddingBottom: 5
167175
}
168176
});
169177

0 commit comments

Comments
 (0)