Show images of types
This commit is contained in:
parent
0999ef563a
commit
2dfae2dcc9
1 changed files with 4 additions and 3 deletions
|
@ -4,7 +4,8 @@ import {
|
|||
SafeAreaView,
|
||||
StatusBar,
|
||||
Image,
|
||||
TouchableOpacity, View,
|
||||
TouchableOpacity,
|
||||
View,
|
||||
} from 'react-native';
|
||||
|
||||
import React, {useState, useEffect, useRef} from 'react';
|
||||
|
@ -114,7 +115,7 @@ export default function ExploreScreen() {
|
|||
data={types}
|
||||
renderItem={(item: any, index: any) => (
|
||||
<TouchableOpacity style={styles.listItem} key={index} onPress={() => viewItem(item)}>
|
||||
<Image source={require('@/assets/images/paper.png')} style={styles.listImage}/>
|
||||
<Image source={{uri: item.image}} style={styles.listImage}/>
|
||||
<ThemedText type="default">{item.name}</ThemedText>
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
|
@ -128,7 +129,7 @@ export default function ExploreScreen() {
|
|||
<ThemedText type="subtitle" style={{marginBottom: 30, textAlign: 'center'}}>{activeCategory?.name}</ThemedText>
|
||||
|
||||
<View style={styles.modalType}>
|
||||
<Image source={require('@/assets/images/paper.png')} style={styles.modalTypeImage}/>
|
||||
<Image source={{uri: activeCategory?.type.image}} style={styles.modalTypeImage}/>
|
||||
<ThemedText>{activeCategory?.type?.name}</ThemedText>
|
||||
</View>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue