mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
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:
committed by
facebook-github-bot-4
parent
a33fe94dac
commit
fe42a28de1
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user