Skip to content

Commit

Permalink
Fix crash in XMLHttpRequest example on Android (#24747)
Browse files Browse the repository at this point in the history
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: #24747

Differential Revision: D15258037

Pulled By: cpojer

fbshipit-source-id: 73086dc92ceb065200e0faafaf100fa742b387bb
  • Loading branch information
janicduplessis authored and facebook-github-bot committed May 8, 2019
1 parent 0f30ed4 commit 16e4971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RNTester/js/XHRExampleFormData.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class XHRExampleFormData extends React.Component<Object, Object> {
_fetchRandomPhoto = () => {
CameraRoll.getPhotos({
first: PAGE_SIZE,
groupTypes: 'All',
groupTypes: Platform.OS === 'ios' ? 'All' : undefined,
assetType: 'All',
}).then(
data => {
Expand Down

0 comments on commit 16e4971

Please sign in to comment.