Files
react-native/RNTester/js/XHRExample.js
Christoph Nakazawa 6345fcf12b Remove WebView from public RN interface
Summary:
This diff removes the `WebView` export from React Native. Internally, we are requiring `WebView` directly now and externally people will have to use the community maintained module. This diff does not yet move the WebView files from the repo, this will happen in a follow-up.

Note that I had to remove a test for Cookies that displayed data in a WebView. I don't think there is an easy way to retain this (debugging) information that likely very few people ever take a look at so I think it is fine.

Reviewed By: TheSavior

Differential Revision: D14613077

fbshipit-source-id: b1d412f970d09d7d70ecac2c23e62cfdd09d7c8e
2019-03-28 17:37:05 -07:00

65 lines
1.4 KiB
JavaScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
'use strict';
const React = require('react');
const XHRExampleDownload = require('./XHRExampleDownload');
const XHRExampleBinaryUpload = require('./XHRExampleBinaryUpload');
const XHRExampleFormData = require('./XHRExampleFormData');
const XHRExampleHeaders = require('./XHRExampleHeaders');
const XHRExampleFetch = require('./XHRExampleFetch');
const XHRExampleOnTimeOut = require('./XHRExampleOnTimeOut');
exports.framework = 'React';
exports.title = 'XMLHttpRequest';
exports.description =
'Example that demonstrates upload and download ' +
'requests using XMLHttpRequest.';
exports.examples = [
{
title: 'File Download',
render() {
return <XHRExampleDownload />;
},
},
{
title: 'multipart/form-data Upload',
render() {
return <XHRExampleBinaryUpload />;
},
},
{
title: 'multipart/form-data Upload',
render() {
return <XHRExampleFormData />;
},
},
{
title: 'Fetch Test',
render() {
return <XHRExampleFetch />;
},
},
{
title: 'Headers',
render() {
return <XHRExampleHeaders />;
},
},
{
title: 'Time Out Test',
render() {
return <XHRExampleOnTimeOut />;
},
},
];