react-native/Libraries/Network
Jakub Šimo 82f3964f2d Change Promise.done to Promise.then
Summary:
- [X] Explain the **motivation** for making this change.
- [X] Provide a **test plan** demonstrating that the code is solid.
- [X] Match the **code formatting** of the rest of the codebase.
- [X] Target the `master` branch, NOT a "stable" branch.

`Promise.done` is non-standard, `Promise.then` is preferred as a standardized method. On Android, polyfill filling in `Promise.done` has been most probably taken out in newer versions of `react-native` and app crashes when it tries to query network state through `NetInfo`.

No tests are required for this change.
Closes https://github.com/facebook/react-native/pull/13489

Differential Revision: D4897566

Pulled By: mkonicek

fbshipit-source-id: 140720d7367cd1d9bf8924ec8a118c1bff4e461d
2017-04-16 15:30:46 -07:00
..
RCTNetwork.xcodeproj Enable -Wimplicit-retain-self en sync warning config for all projects 2017-03-23 15:01:34 -07:00
__tests__ Network/FormData typeof object allowing null 2017-02-10 13:30:48 -08:00
FormData.js Network/FormData typeof object allowing null 2017-02-10 13:30:48 -08:00
NetInfo.js Change Promise.done to Promise.then 2017-04-16 15:30:46 -07:00
RCTDataRequestHandler.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTDataRequestHandler.m
RCTFileRequestHandler.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTFileRequestHandler.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTHTTPRequestHandler.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTHTTPRequestHandler.mm Add lock to RCTHTTPRequestHandler 2016-10-12 08:59:04 -07:00
RCTNetInfo.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTNetInfo.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTNetworkTask.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTNetworkTask.m Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTNetworking.android.js BREAKING: Android: Support withCredentials flag in XHRs 2017-04-10 22:46:12 -07:00
RCTNetworking.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTNetworking.ios.js BREAKING: iOS: Support withCredentials flag in XHRs 2017-03-08 06:15:15 -08:00
RCTNetworking.mm BREAKING: iOS: Support withCredentials flag in XHRs 2017-03-08 06:15:15 -08:00
XHRInterceptor.js Reorganize core JS files 2016-10-11 10:14:28 -07:00
XMLHttpRequest.js BREAKING: iOS: Support withCredentials flag in XHRs 2017-03-08 06:15:15 -08:00
convertRequestBody.js XHR: support typed arrays for request payloads 2017-01-20 18:43:27 -08:00
fetch.js Reorganize core JS files 2016-10-11 10:14:28 -07:00