Тёмный

Making GET, PUT, POST and DELETE HTTP Requests using Fetch from a React Native App 

MissCoding
Подписаться 8 тыс.
Просмотров 10 тыс.
50% 1

Hi everyone!
Today I am going to show you how to make the following HTTP requests in a React Native app:
GET & GET with Id
DELETE by Id
PUT with headers and body
POST with headers and body
I will also show you how to read a json response and access the status and headers of the response.
The React Native API requests code from the tutorial:
github.com/chelseafarley/api_...
My code for the python apis:
github.com/chelseafarley/pyth...
And my video describing how to create APIs in Python is here:
• Create RESTful APIs Us...
You’ve clearly come here to learn and a free audible trial allows you to increase your learning potential in situations where you may be hands free like at the gym or on your commute. It allows you to spend more time on theory when you aren’t able to watch a screen, so that you can maximise your screen time to pick up technical skills. Try it for free today:
amzn.to/3ECMsom
// ABOUT ME
My name is Chelsea and I started studying software engineering in 2010. I have been working commercially full time since 2014 and have been in various positions from graduate developer to tech lead to solution architect.
I'm a full stack developer with a lot of experience in C# and Javascript but my passion is for mobile development; specifically native iOS development and cross platform using React Native.
I always have many things on the go and am always trying out a new side hustle and failing at it; perhaps you can learn from my mistakes!
Please like and subscribe if you enjoyed this video and want to see more like it!
Have any suggestions on topics you would like to learn more about? Please suggest them in the comments... I would love to help you out while doing a bit of learning myself!
// PRODUCTS USED
I use the following products in the creation of my videos:
Boya MM1 Microphone - amzn.to/3m6kif7
A reasonable quality and reasonably sturdy but cost effective microphone that can be used by both DSLR cameras, mobile phones and laptops
Canon 18-55mm Lens - amzn.to/3IwscFR
A kit lens but a decent quality lens for beginners getting used to a DSLR
Canon EOS Rebel T7 with 18-55mm Lens - amzn.to/3XZauAL
This is the kit I started with it includes the lens linked above and is a great starter camera.
I love Apple devices... These are the ones I use for my channel content creation:
Apple iPhone 13 - amzn.to/3KAUba4
A good all round phone, good for Apple development and recording videos with enough high quality features but at a cheaper price point than the pro versions.
Apple MacBook Pro - amzn.to/3KxrE5q
A nice portable computer for working from anywhere and perfect for iOS development
Apple iPad Air - amzn.to/3xU2k21
Really easy to use for graphic design if required for logos as part of my app development or editing the videos on the go.
Apple Pencil (2nd Generation) - amzn.to/3EBSwNS
For logo and icon design in Affinity Designer app for iPad
Logitech Folio Keyboard Touch - amzn.to/3XUYBM1
Adds keyboard and touchpad to iPad Air, making it easier to use for writing code/eBooks etc. on the go!
DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting my channel so I can continue to provide you with free content each week!
//CONTACT:
Please contact me at: hello@tripwiretech.com
//CRAVING MORE:
You can find links to all my different sites and social media over on Linktree: linktr.ee/misscoding

Наука

Опубликовано:

 

13 июн 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@sophiascarlet8595
@sophiascarlet8595 Год назад
nice and friendly, 10 / 10 will recommend
@juvenalmakoszay
@juvenalmakoszay 10 месяцев назад
Very nice tutorial
@zayrarojas9169
@zayrarojas9169 28 дней назад
muchas gracias, muy bien la explicación. Bendiciones
@elvisdelaguila
@elvisdelaguila 2 месяца назад
Great!
@juvenalmakoszay
@juvenalmakoszay 10 месяцев назад
Thank you
@sergioddh
@sergioddh Год назад
How did you fetch a http host? I mean, here in my app I got an error when trying to fetch http (nor https) urls.
@cking9145
@cking9145 Год назад
Can someone help me? ☹️ Some how my server only receives an empty object als request, when I post with react native fetch. I do it like every one else and I really don't know what the problem is ☹️ While I get the complete object when I do it with postman on the same machine as my server and when I use an REST-Client App from the appstore. But only my app doesn't send the data.
@AddelSalman
@AddelSalman Год назад
I'm just starting to learn react native and trying to build a weather app, would you give me a hint. That would be highly appreciated
@bilgekaankaplan1141
@bilgekaankaplan1141 Год назад
hearing a female voice, i dont know how but i wasnt expecting and surprised me. thx for being a female :DDD :D also thx for content.
Далее
Monster shops mini mart 👻🛒 #shorts
00:49
Просмотров 6 млн
2000 vs 2100
00:15
Просмотров 16 тыс.
React Native tutorial #46 API Call | Fetch Rest API
10:28
React Native Tutorial - 70 - POST Request
7:23
Просмотров 10 тыс.
Fetching Data in React - Complete Tutorial
29:10
Просмотров 90 тыс.
React Proxy | Easiest Fix to CORS Errors
15:52
Просмотров 79 тыс.
React Axios API Requests | Axios with React JS Tutorial
38:32
iOS 18 vs Samsung, Xiaomi,Tecno, Android
0:54
Просмотров 80 тыс.
#miniphone
0:16
Просмотров 3,5 млн