diff --git a/packages/rn-tester/js/examples/XHR/XHRExampleDownload.js b/packages/rn-tester/js/examples/XHR/XHRExampleDownload.js index f203a7d9a1d068..107dc453490e5f 100644 --- a/packages/rn-tester/js/examples/XHR/XHRExampleDownload.js +++ b/packages/rn-tester/js/examples/XHR/XHRExampleDownload.js @@ -14,9 +14,6 @@ const React = require('react'); const { Alert, - Platform, - ProgressBarAndroid, - ProgressViewIOS, StyleSheet, Switch, Text, @@ -31,21 +28,6 @@ function roundKilo(value: number): number { return Math.round(value / 1000); } -class ProgressBar extends React.Component<$FlowFixMeProps> { - render() { - if (Platform.OS === 'android') { - return ( - - ); - } - return ; - } -} - class XHRExampleDownload extends React.Component<{...}, Object> { state: Object = { downloading: false, @@ -126,7 +108,10 @@ class XHRExampleDownload extends React.Component<{...}, Object> { Alert.alert('Error', xhr.responseText); } }; - xhr.open('GET', 'http://aleph.gutenberg.org/cache/epub/100/pg100.txt.utf8'); + xhr.open( + 'GET', + 'http://aleph.gutenberg.org/cache/epub/100/pg100-images.html.utf8', + ); // Avoid gzip so we can actually show progress xhr.setRequestHeader('Accept-Encoding', ''); xhr.send(); @@ -149,7 +134,7 @@ class XHRExampleDownload extends React.Component<{...}, Object> { ) : ( - Download 5MB Text File + Download 7MB Text File ); @@ -164,7 +149,6 @@ class XHRExampleDownload extends React.Component<{...}, Object> { responseText: {roundKilo(responseLength)}/{roundKilo(contentLength)} k chars - ); } @@ -176,7 +160,6 @@ class XHRExampleDownload extends React.Component<{...}, Object> { onprogress: {roundKilo(progressLoaded)}/{roundKilo(progressTotal)}{' '} KB - ); }