How does react-native fetch solve the failure of http api requests simulated by Mock?

react-native fetch only supports https protocol. How to modify it to make it support http request?
Rap Mock only supports http

I read the forum and said that I would add two values to info.plist

.

it still doesn"t work after I add it. How can I solve this problem?

Mar.03,2021

restart from xcode or react-antive run-ios


modify Allow Arbitrary Loads to yes , save and rerun the project

Menu