Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Accessing all of the tracks in a given album

Accessing all of the tracks in a given album

Alright so I want to access, let's just say for the sake of simplicity, the first track of an album.

Using react native, when I write

<Text> {album.name} </Text>

it gives me the album name (im not providing a lot of lines of code for the sake of simplicity)

<Text> {album.artists[0].name} </Text>

gives me the first artist's name.

<Text> {album.tracks.items[0].name </Text>

tells me that tracks is undefined. it's like tracks does not exist.

How is this? Help please thanks.

Reply
0 Replies

Suggested posts