score:1

Accepted answer

please update your flatlist to :

        <flatlist
          data={travels}
          renderitem={({item}) => {console.log(item)}}
          //other properties
        />

from official documentation the renderitem method takes out item from the flatlist array and since you are using the destructuring syntax to extract it, you should explicitly use item. an alternative without the destructuring syntax would look like :

          <flatlist
          data={travels}
          renderitem={(travel) =>{ console.log(travel.item)}}
          //other properties
        />

Related Query

More Query from same tag