Consume Youtube API v3 with React Native to list videos on a Flatlist

Asked

Viewed 54 times

1

I really need your help, I am beginner in React Native and I want to do a Flatlist with the videos of a channel of Youtube, but I don’t know how to do the integration of AXIOS or Fecht with the Fletlist and so list.

That I’ve managed to do with Javascript pure on the Web in 2 hours, but on React I’m 3 days and nothing.

If someone already knows how to make a simple example of a page just so I can understand, how it was done.

I’m using this API from Youtube v3 to make the GET for my application.

const API = axios.create({
   baseURL:`https://www.googleapis.com/youtube/v3/search?key=${api_key}&channelId=${channel_id}&part=snippet,id&order=date&maxResults=${max_results}`
})
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.