The problem here is that iOS does not allow HTTP requests by default, only HTTPS. If you want to enable HTTP requests add this to your info.plist
:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
More Related Contents:
- Using an authorization header with Fetch in React Native
- How to use FormData in react-native?
- React-native upload image to amazons s3
- What is component in reactjs?
- How to create a translucent in React Native?
- Trying to use fetch and pass in mode: no-cors
- Error when accessing API with fetch while setting mode to ‘no-cors’ [duplicate]
- How do I post form data with fetch api?
- fetch resolves even if 404?
- fetch(), how do you make a non-cached request?
- POST Request with Fetch API?
- react native use variable for image file
- React Native: Getting the position of an element
- fetch() unexpected end of input
- Cannot load Deezer API resources from localhost with the Fetch API
- Navigate to screen after opening a notification?
- How can I insert a line break into a component in React Native?
- Invariant Violation: Text strings must be rendered within a component
- Resetting the navigation stack for the home screen (React Navigation and React Native)
- Hide 401 console.error in chrome dev tools getting 401 on fetch() call [duplicate]
- how to process fetch response from an ‘opaque’ type?
- fetch retry request (on failure)
- What is the best way to store private data in react-native?
- How can I dispatch function in redux?
- TypeError: cli.init is not a function for react native
- UseEffect being called multiple times
- React Native – Axios – Trying to upload image
- How do I download a file from FastAPI backend using JavaScript Fetch API in the frontend?
- React-native view auto width by text inside
- Focus style for TextInput in react-native