From 16e4971121435879e4f621214948379ab4ea2734 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Wed, 8 May 2019 03:08:56 -0700 Subject: [PATCH] Fix crash in XMLHttpRequest example on Android (#24747) Summary: Fix crash in XMLHttpRequest example because `groupTypes` is not supported on android. [Android] [Fixed] - Fix crash in XMLHttpRequest example on Android Pull Request resolved: https://github.com/facebook/react-native/pull/24747 Differential Revision: D15258037 Pulled By: cpojer fbshipit-source-id: 73086dc92ceb065200e0faafaf100fa742b387bb --- RNTester/js/XHRExampleFormData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNTester/js/XHRExampleFormData.js b/RNTester/js/XHRExampleFormData.js index 5097b6a35c6be8..12fffc6432a557 100644 --- a/RNTester/js/XHRExampleFormData.js +++ b/RNTester/js/XHRExampleFormData.js @@ -49,7 +49,7 @@ class XHRExampleFormData extends React.Component { _fetchRandomPhoto = () => { CameraRoll.getPhotos({ first: PAGE_SIZE, - groupTypes: 'All', + groupTypes: Platform.OS === 'ios' ? 'All' : undefined, assetType: 'All', }).then( data => {