I want to display image from the db.if there is no data then dispaly default image
data.length==0?
source={defaultimage} style={styles.image} resizeMode="center" /> : ); issue is the data lenth was 0.but did not display the default image

Sachin SinghRank #66 · 26.2K reputationPosted Jan 11, 2022, 7:53 AM EST
Vinitha TRank #8,005 · 230 reputationPosted Jan 21, 2022, 10:45 AM EST
By using if-else condition,