In React Native, I have a static array of books that I map over and output in stacked rows like this:
return books.map((book, i) => { return(
You could achieve this using some logic:
return books.map((book, i) => { return( {book.title} ); });
What this does is check if i, the iterator, is equal to the books array's length - 1.
i
length - 1