Skip to content

Commit

Permalink
fix: collectible image not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
cakesoft-shashank committed Sep 26, 2023
1 parent b6e872f commit 710cc34
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/pages/Assets/AssetsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { useEffect, useState } from 'react'
import {
FlatList,
Image,
Platform,
RefreshControl,
ScrollView,
StatusBar,
Expand Down Expand Up @@ -134,7 +135,10 @@ export default function AssetsScreen( props ) {
<View style={index == 7 ? styles.randomImageContainer : styles.imageContainer}>
<Image style={styles.image}
source={{
uri: item.dataPaths[ 0 ].filePath
uri: Platform.select( {
android: `file://${item.dataPaths[ 0 ].filePath}`,
ios: item.dataPaths[ 0 ].filePath
} )
}}
/>
</View>
Expand Down
6 changes: 5 additions & 1 deletion src/pages/rgb/AssetMetaData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { useEffect, useState } from 'react'
import {
ActivityIndicator,
Image,
Platform,
SafeAreaView,
ScrollView,
StatusBar,
Expand Down Expand Up @@ -154,7 +155,10 @@ const AssetMetaData = ( props ) => {
}}
resizeMode="contain"
source={{
uri: asset.dataPaths[ 0 ].filePath
uri: Platform.select( {
android: `file://${asset.dataPaths[ 0 ].filePath}`,
ios: asset.dataPaths[ 0 ].filePath
} )
}}
/>
<TouchableOpacity onPress={() => {
Expand Down
6 changes: 5 additions & 1 deletion src/pages/rgb/RGB121TxDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
ActivityIndicator,
FlatList,
Image,
Platform,
SafeAreaView,
StatusBar,
StyleSheet,
Expand Down Expand Up @@ -170,7 +171,10 @@ export default function RGB121TxDetail( props ) {
<Image style={{
height: 50, width: 50, borderRadius: 30
}} source={{
uri: asset.dataPaths[ 0 ].filePath
uri: Platform.select( {
android: `file://${asset.dataPaths[ 0 ].filePath}`,
ios: asset.dataPaths[ 0 ].filePath
} )
}}/>
</View>}
isBitcoin={false}
Expand Down

0 comments on commit 710cc34

Please sign in to comment.