Add response headers to XHR response

Summary: This is code from https://github.com/facebook/react-native/pull/3062 with fix for support multiple values from qbig
Closes https://github.com/facebook/react-native/pull/3709

Reviewed By: svcscm

Differential Revision: D2595944

Pulled By: astreet

fb-gh-sync-id: 2ff78de412f53932e29953b4e2ae6ff7be78eae3
This commit is contained in:
Adrov Igor
2015-10-30 11:16:13 -07:00
committed by facebook-github-bot-4
parent a33fe94dac
commit fe42a28de1
4 changed files with 148 additions and 4 deletions

View File

@@ -25,6 +25,8 @@ var {
View,
} = React;
var XHRExampleHeaders = require('./XHRExampleHeaders');
// TODO t7093728 This is a simlified XHRExample.ios.js.
// Once we have Camera roll, Toast, Intent (for opening URLs)
// we should make this consistent with iOS.
@@ -259,7 +261,6 @@ class FormUploader extends React.Component {
}
}
exports.framework = 'React';
exports.title = 'XMLHttpRequest';
exports.description = 'Example that demonstrates upload and download requests ' +
@@ -274,6 +275,11 @@ exports.examples = [{
render() {
return <FormUploader/>;
}
}, {
title: 'Headers',
render() {
return <XHRExampleHeaders/>;
}
}];
var styles = StyleSheet.create({