@@ -54,24 +54,26 @@ class HomeScreen extends Component {
54
54
style = { { marginLeft : 20 , flexDirection : 'column' , backgroundColor : 'blue' } }
55
55
>
56
56
< Text
57
- style = { { marginTop : 8 } }
57
+ style = { { marginTop : 8 , } }
58
58
category = "h6"
59
59
>
60
60
{ title }
61
61
</ Text >
62
- < Text
63
- style = { { marginTop : 8 , position : 'absolute' , bottom : 8 , backgroundColor : 'red' } }
64
- category = "h7"
62
+ < View
63
+ style = { { marginTop : 8 , position : 'absolute' , bottom : 8 , backgroundColor : 'red' , flexDirection : 'row' } }
65
64
>
66
- ⭐ 9.3
67
- </ Text >
65
+ < Image
66
+ style = { { height : 14 , width : 14 , alignSelf : 'center' } }
67
+ source = { require ( './img/star.png' ) } > </ Image >
68
+ < Text style = { { alignSelf : 'center' , marginLeft : 8 } } category = "s2" > 9.3</ Text >
69
+ </ View >
68
70
</ View >
69
71
< View
70
72
style = { { flex : 1 , backgroundColor : 'grey' } }
71
73
>
72
74
< Text
73
- style = { { position : 'absolute' , right : 0 , marginTop : 16 } }
74
- category = "h7 " > $9.87</ Text >
75
+ style = { { position : 'absolute' , right : 12 , marginTop : 16 } }
76
+ category = "s1 " > $9.87</ Text >
75
77
< Button
76
78
status = "white"
77
79
size = "tiny"
@@ -95,20 +97,23 @@ class HomeScreen extends Component {
95
97
return (
96
98
< View style = { { flex : 1 } } >
97
99
< Modal
100
+ backdropOpacity = { 0.2 }
98
101
style = { { margin : 0 , justifyContent : 'flex-end' } }
99
102
isVisible = { this . state . isModalVisible }
100
103
deviceHeight = { WINDOW_HEIGHT / 2 }
101
104
deviceWidth = { WINDOW_WIDTH }
102
105
>
103
- < View style = { { height : WINDOW_HEIGHT / 1.8 , backgroundColor : 'white' } } >
106
+ < View style = { { height : WINDOW_HEIGHT / 1.8 , backgroundColor : 'white' , borderRadius : 24 } } >
104
107
< View style = { { marginLeft : 20 , marginRight : 20 , marginTop : 20 } } >
105
- < Text style = { { marginBottom : 25 } } category = "h4" > Season 1 Episodes</ Text >
108
+ < View style = { { flexDirection : 'row' , marginBottom : 25 , justifyContent : 'space-between' } } >
109
+ < Text category = "h4" > Season 1 Episodes</ Text >
110
+ { this . _showCloseIcon ( ) }
111
+ </ View >
106
112
< FlatList
107
113
data = { this . state . images }
108
114
keyExtractor = { this . _keyExtractor }
109
115
renderItem = { this . _renderEpisodeItem }
110
116
/>
111
- { this . _showCloseIcon ( ) }
112
117
</ View >
113
118
</ View >
114
119
</ Modal >
@@ -223,7 +228,7 @@ class HomeScreen extends Component {
223
228
>
224
229
< Image
225
230
style = { styles . closeIcon }
226
- source = { require ( './img/cancel .png' ) } />
231
+ source = { require ( './img/delete-button .png' ) } />
227
232
</ TouchableWithoutFeedback >
228
233
} else {
229
234
return null
@@ -296,11 +301,11 @@ const styles = StyleSheet.create({
296
301
shadowRadius : 8
297
302
} ,
298
303
closeIcon : {
299
- position : 'absolute' ,
300
- right : 20 ,
301
- top : 20 ,
302
- height : 32 ,
303
- width : 32 ,
304
- tintColor : 'red '
304
+ // position: 'absolute',
305
+ // right: 0 ,
306
+ alignSelf : 'center' ,
307
+ height : 24 ,
308
+ width : 24 ,
309
+ tintColor : '#9E9E9E '
305
310
}
306
311
} ) ;
0 commit comments