리액트네이티브 서버통신 post(Fetch, axios)


리액트네이티브 서버통신 post(Fetch, axios)

리액트네이티브로 앱이나 웹을만들때 서버나 인터넷 없이 작동하는 앱도 있지만 21세기 테크날로지 시대에서 인터넷없는 앱,웹은 반쪽자리라 볼수 있다 그러므로 간단하게 서버통신하는 법을 알아보자 Fetch (리액트네이티브 기본탑재) https://reactnative.dev/docs/network#using-fetch Networking · React Native Many mobile apps need to load resources from a remote URL. You may want to make a POST request to a REST API, or you may need to fetch a chunk of static content from another server. reactnative.dev 리액트네이티브가 기본적으로 제공하는 함수로 사용법은 간단하다 fetch('https://mywebsite.com/mydata.json'); //이런식으로 콘텐츠를 가져오기 위해 U...



원문링크 : 리액트네이티브 서버통신 post(Fetch, axios)