Skip to content

Commit

Permalink
update structure of DATA
Browse files Browse the repository at this point in the history
  • Loading branch information
thomHayner committed Dec 11, 2022
1 parent 86a7382 commit 0125512
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions AppTimelineItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default function TimeLineItem({
</Text>
</View>

{/* [CARD IMAGE ICON IF THERE IS MEDIA] */}
{/* [CARD IMAGE ICON/SCROLL-DOWN-BUTTON IF THERE IS MEDIA] */}
{itemData.media ?
<Pressable
style={styles.mediaIcon}
Expand Down Expand Up @@ -140,10 +140,11 @@ export default function TimeLineItem({
{itemData.media ?
<View style={styles.itemCardMedia}>
<Image
alt={itemData.media.alt ? itemData.media.alt : ""}
style={
{ flex: 1, height: undefined, width: undefined, marginVertical: 10, }
}
source={itemData.media}
source={itemData.media.img}
resizeMethod='auto'
resizeMode='contain'
/>
Expand Down Expand Up @@ -172,18 +173,18 @@ export default function TimeLineItem({
<SafeAreaView style={{ flex: 1, backgroundColor: '#191109', }}>
<View style={styles.modalMedia}>
<Image
alt={itemData.alt ? `${itemData.alt}` : ""}
alt={itemData.media.alt ? itemData.media.alt : ""}
style={{ flex: 1, height: undefined, width: undefined, }}
source={itemData.media}
source={itemData.media.img}
resizeMethod='auto'
resizeMode='contain'
/>
</View>

{itemData.alt ?
{itemData.media.alt ?
<View style={styles.modalAltBox}>
<Text style={isTextEnlarged ? styles.modalAltTextEnlarged : styles.modalAltTextFont}>
{itemData.alt}
{itemData.media.alt}
</Text>
</View>
:
Expand Down

0 comments on commit 0125512

Please sign in to comment.