React Native Tutorial | Fetch Data from API

preview_player
Показать описание
🔗 Connect with us:

GitHub Repo (with README):

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬

0:00 - Intro
0:08 - Create a new project
1:45 - Import statements
2:16 - Fetch Data From API
4:51 - Display Data From API
8:15 - Conclusion
Рекомендации по теме
Комментарии
Автор

For the people with the error Possible Unhandled Promise Rejection (id: 0):
TypeError: f is not a function. (In 'f()', 'f' is undefined) - changing ".finally" for ".then" worked for me, so it should be
.then(setLoading(false));

majocoav
Автор

Thank you very much for the great tutorial. Very helpful.

renegade
Автор

Thanks so much!! This tutorial helped :) Unfortunately, some documentation can be bad so this helped out.

Josh-rilg
Автор

thank you man, i've been looking for a tutorial that's using arrow function and not class
+1

Sofien_Steve
Автор

I am getting error "Network request failed" why?

prasanna
Автор

I'm getting an error

Possible Unhandled Promise Rejection (id: 0):
TypeError: f is not a function. (In 'f()', 'f' is undefined)

what are your suggested solutions ?

Ferreiragangofc
Автор

For me it didn't display the fetch results if i didn't have a return statement in renderItem function.

But still it was easy to understand and thanks a
You got a new subscriber, keep it easy and plain if it's possible as you do. So many explanations on the web and so few can actually show in a simple way the thing you are wondering about.

eey
Автор

Unhandled promise rejection: TypeError: f is not a function. (In 'f()', 'f' is undefined)

getting this warning
what to do sir?

karansiddhu
Автор

Great that's how i began to learn creat native too, (with hooks) and i'm actually stuck on how to make multiple endpoints calls. Here in this sample, you are almost doing it since you are calling multiple times API, but always the same endpoint.

kurty
Автор

The data doesn't display on my emulator

theitguy
Автор

even im getting the same error.

Possible Unhandled Promise Rejection (id: 0):

TypeError: f is not a function. (In 'f()', 'f' is undefined)

not sure why. havent used the function f anywhere in the code. followed the same steps as in the video

anonymous
Автор

Can you help me. I want to fetch data for detail screen in react native. I want to fetch data by id but i dont knoe how to do it. I want to show data by id

maulanaprayoga
Автор

mis respetos un abrazo y muchas gracias por tu ayuda

IkiCaleb
Автор

Hi how do I change value of a fetch data. For instance the value of {item.title} to something else

Boga_adventures
Автор

Showing empty screen, no error or nothing

HaiderKhan-ublq
Автор

Thank you so much I now can get and fetch data easily thank you so much

abdulrhmanbakr
Автор

if I change the url to something else. It immediately crashes. How you handle that crash

bidhan
Автор

Can we implement the same method to add fetch a geojson url

jananishruthi
Автор

how to add api key on header and post some parameters please guide

sakthivelseo
Автор

el codigo va bien si se cambia en la linea 13 por:

export default function App() {

Niltongonzanorojassql
visit shbcf.ru