-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWeekly.js
26 lines (22 loc) · 954 Bytes
/
Weekly.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
//data props or redux로 전송.
{/* <ScrollView horizontal
contentContainerStyle={styles.weather}
pagingEnabled showsHorizontalScrollIndicator="false"
>
{days.length === 0 ?
<View style={{...styles.day , alignItems:"center"}}>
<ActivityIndicator color="white" size="large"/>
</View>:
days.map((day,idx) =>{
<View key={idx} style={styles.day}>
<View style={{flexDirection:"row" ,
width:"100%", justifyContent:"space-between",
}}>
<Text style={styles.temp}>{parseInteger(day.temp.day)}</Text>
<Fontisto name={icons[day.weather[0].main]} size={68} color="black" />
</View>
<Text style={styles.description}>{day.weather[0].main}</Text>
<Text style={styles.tinyText}>{day.weather[0].description}</Text>
</View>})
}
</ScrollView> */}