Skip to content

Commit 46495d1

Browse files
committed
updated stat icon and minor UI changes
1 parent 0e59e67 commit 46495d1

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

src/HomeScreen.js

+23-18
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,26 @@ class HomeScreen extends Component {
5454
style={{ marginLeft: 20, flexDirection: 'column', backgroundColor: 'blue' }}
5555
>
5656
<Text
57-
style={{ marginTop: 8 }}
57+
style={{ marginTop: 8, }}
5858
category="h6"
5959
>
6060
{title}
6161
</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' }}
6564
>
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>
6870
</View>
6971
<View
7072
style={{ flex: 1, backgroundColor: 'grey' }}
7173
>
7274
<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>
7577
<Button
7678
status="white"
7779
size="tiny"
@@ -95,20 +97,23 @@ class HomeScreen extends Component {
9597
return (
9698
<View style={{ flex: 1 }}>
9799
<Modal
100+
backdropOpacity={0.2}
98101
style={{ margin: 0, justifyContent: 'flex-end' }}
99102
isVisible={this.state.isModalVisible}
100103
deviceHeight={WINDOW_HEIGHT / 2}
101104
deviceWidth={WINDOW_WIDTH}
102105
>
103-
<View style={{ height: WINDOW_HEIGHT / 1.8, backgroundColor: 'white' }}>
106+
<View style={{ height: WINDOW_HEIGHT / 1.8, backgroundColor: 'white', borderRadius: 24 }}>
104107
<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>
106112
<FlatList
107113
data={this.state.images}
108114
keyExtractor={this._keyExtractor}
109115
renderItem={this._renderEpisodeItem}
110116
/>
111-
{this._showCloseIcon()}
112117
</View>
113118
</View>
114119
</Modal>
@@ -223,7 +228,7 @@ class HomeScreen extends Component {
223228
>
224229
<Image
225230
style={styles.closeIcon}
226-
source={require('./img/cancel.png')} />
231+
source={require('./img/delete-button.png')} />
227232
</TouchableWithoutFeedback>
228233
} else {
229234
return null
@@ -296,11 +301,11 @@ const styles = StyleSheet.create({
296301
shadowRadius: 8
297302
},
298303
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'
305310
}
306311
});

src/img/delete-button.png

2.86 KB
Loading

src/img/star.png

1.81 KB
Loading

0 commit comments

Comments
 (0)