|
9 | 9 | Image
|
10 | 10 | } from 'react-native';
|
11 | 11 | import Modal from 'react-native-modal'
|
12 |
| -import { Text } from 'react-native-ui-kitten' |
| 12 | +import { Text, Button } from 'react-native-ui-kitten' |
13 | 13 | import { SafeAreaView } from 'react-navigation'
|
14 | 14 | import { FlatList } from 'react-native-gesture-handler';
|
15 | 15 |
|
@@ -48,13 +48,43 @@ class HomeScreen extends Component {
|
48 | 48 | const { title, imageUrl } = item
|
49 | 49 |
|
50 | 50 | return (
|
51 |
| - <View style={{ flexDirection: 'row', marginBottom: 10 }} > |
| 51 | + <View style={{ flexDirection: 'row', marginBottom: 10, backgroundColor: 'yellow' }} > |
52 | 52 | <Image style={{ height: 100, width: 100, borderRadius: 12 }} source={{ uri: imageUrl }} />
|
53 |
| - <Text style={{ marginLeft: 20, marginTop: 8 }} category="h6" >{title}</Text> |
54 |
| - |
55 |
| - <Text |
56 |
| - style={{ position: 'absolute', right: 0, marginTop: 12 }} |
57 |
| - category="h7" >$9.87</Text> |
| 53 | + <View |
| 54 | + style={{ marginLeft: 20, flexDirection: 'column', backgroundColor: 'blue' }} |
| 55 | + > |
| 56 | + <Text |
| 57 | + style={{ marginTop: 8 }} |
| 58 | + category="h6" |
| 59 | + > |
| 60 | + {title} |
| 61 | + </Text> |
| 62 | + <Text |
| 63 | + style={{ marginTop: 8, position: 'absolute', bottom: 8, backgroundColor: 'red' }} |
| 64 | + category="h7" |
| 65 | + > |
| 66 | + ⭐ 9.3 |
| 67 | + </Text> |
| 68 | + </View> |
| 69 | + <View |
| 70 | + style={{ flex: 1, backgroundColor: 'grey' }} |
| 71 | + > |
| 72 | + <Text |
| 73 | + style={{ position: 'absolute', right: 0, marginTop: 16 }} |
| 74 | + category="h7">$9.87</Text> |
| 75 | + <Button |
| 76 | + status="white" |
| 77 | + size="tiny" |
| 78 | + style={{ backgroundColor: '#E0E0E0', borderRadius: 30, position: 'absolute', right: 0, bottom: 0, width: 60 }} |
| 79 | + icon={(style) => { |
| 80 | + return <Image |
| 81 | + style={{ height: 16, width: 16 }} |
| 82 | + tintColor="#424242" |
| 83 | + source={require('./img/media-play.png')}></Image> |
| 84 | + }} |
| 85 | + > |
| 86 | + </Button> |
| 87 | + </View> |
58 | 88 | </View>
|
59 | 89 | )
|
60 | 90 | }
|
|
0 commit comments