參考: http://10minbasics.com/react-native-network-request-failed-fix/
First of all, when you try to use the network in your app, you should enable it in XCode.
- Click on your project in the Project Navigator
- Open the Info tab (打開info.plist檔案)
- Right click on App Transport Security Settings and select Add Row
- For created row set the key “Allow Arbitrary Loads“, type to boolean and value to YES.