score:0

<View>
  {
      feed && <Swiper 
            cards={feed}
            cardIndex={index}
            renderCard={(card) => {
                 <View><Image source={{uri: feed.items[0].thumbnail}} /></View>
                }}
        ></Swiper>
  }
  </View>

score:0

useEffect(() => {
    axios.get(URL)
       .then(response => {
          // items ==> [{thumbnail: "", ... },{thumbnail: "", ... },{thumbnail: "", ... }]
          const { items } = response.data
          setFeed(items)
    })
}, [URL])


        
return (
    <View style={styles.container}>
        {
          feed && <Swiper 
            cards={feed}
            cardIndex={index}
            renderCard={(card) => {
                <View style={styles.card}>
                  <Image 
                    style={styles.cardImage} 
                    source={{uri: card.thumbnail}} />
                </View>
            }}
        ></Swiper>
      }
    </View>
  );


Related Query

More Query from same tag