@@ -145,14 +145,14 @@ class Welcome extends Component {
145
145
if ( ! this . props . queries ) { return }
146
146
for ( let query of this . props . queries ) {
147
147
queries . push (
148
- < TouchableOpacity style = { styles . queryContainer } onPress = { ( ) => this . props . setGeocode ( query . geometry . coordinates ) } >
148
+ < TouchableOpacity key = { query . place_name } style = { styles . queryContainer } onPress = { ( ) => this . props . setGeocode ( query . geometry . coordinates ) } >
149
149
< Text ellipsizeMode = "tail" numberOfLines = { 1 } style = { [ styles . listText , ( this . props . geocode . latitude == query . geometry . coordinates [ 0 ] ) ? styles . selectedQuery : styles . listText ] } >
150
150
{ query . place_name }
151
151
</ Text >
152
152
</ TouchableOpacity >
153
153
)
154
154
}
155
- return < View style = { styles . queryList } > { queries } </ View >
155
+ return < View style = { queries . length > 1 && styles . queryList } > { queries } </ View >
156
156
}
157
157
158
158
render ( ) {
@@ -190,14 +190,12 @@ class Welcome extends Component {
190
190
</ View >
191
191
}
192
192
{ ( Platform . OS === 'android' ) &&
193
- < View >
194
- < View title = "TimePickerAndroid" >
195
- < TouchableOpacity
196
- onPress = { this . showPicker . bind ( this , { } ) } >
197
- < Text style = { styles . text } > { this . timeString ( this . props . time ) } </ Text >
198
- </ TouchableOpacity >
199
- </ View >
200
- </ View >
193
+ < View >
194
+ < TouchableOpacity
195
+ onPress = { this . showPicker . bind ( this , { } ) } >
196
+ < Text style = { styles . text } > { this . timeString ( this . props . time ) } </ Text >
197
+ </ TouchableOpacity >
198
+ </ View >
201
199
}
202
200
</ ScrollView >
203
201
< TouchableOpacity style = { styles . buttonContainer } onPress = { this . handleSubmit . bind ( this ) } >
@@ -213,7 +211,7 @@ class Welcome extends Component {
213
211
214
212
const styles = StyleSheet . create ( {
215
213
title : {
216
- fontSize : 15 * PixelRatio . getFontScale ( ) ,
214
+ fontSize : 12 * PixelRatio . getFontScale ( ) ,
217
215
textAlign : 'center'
218
216
} ,
219
217
outerContainer : {
@@ -228,8 +226,8 @@ const styles = StyleSheet.create({
228
226
} ,
229
227
text : {
230
228
fontFamily : 'HelveticaNeue-Medium' ,
231
- fontSize : 15 * PixelRatio . getFontScale ( ) ,
232
- height : 40 ,
229
+ fontSize : 12 * PixelRatio . getFontScale ( ) ,
230
+ paddingVertical : 10 ,
233
231
color : colors . primary ,
234
232
backgroundColor : colors . background ,
235
233
textAlign : 'center'
@@ -245,7 +243,13 @@ const styles = StyleSheet.create({
245
243
queryContainer : {
246
244
} ,
247
245
queryList : {
248
- marginHorizontal : 20
246
+ marginHorizontal : 10 ,
247
+ paddingHorizontal : 10 ,
248
+ paddingBottom : 10 ,
249
+ borderLeftWidth : 1 ,
250
+ borderBottomWidth : 1 ,
251
+ borderRightWidth : 1 ,
252
+ borderColor : colors . primary ,
249
253
} ,
250
254
textInput : {
251
255
paddingHorizontal : 20 ,
@@ -264,7 +268,7 @@ const styles = StyleSheet.create({
264
268
button : {
265
269
flex : 1 ,
266
270
marginHorizontal : 100 ,
267
- padding : 10 ,
271
+ paddingTop : 10 ,
268
272
height :45 ,
269
273
borderRadius :4 ,
270
274
borderWidth : 2 ,
0 commit comments