How to Make HTTP Requests In React Native IOS application?

前端 未结 3 1806
栀梦
栀梦 2021-02-09 11:26
fetch(\'http://119.9.52.47:3000/api/countries\', {
       method: \'POST\',
       headers: { \'Accept\': \'application/json\',\'Content-Type\': \'application/json\'},
          


        
3条回答
  •  离开以前
    2021-02-09 12:03

    You can use normal fetch function, only add you http host into exception. In your XCode.

提交回复
热议问题