iOS: Fix CameraRoll to support custom user groups
iOS: Fix CameraRoll to support custom user groups

Summary:
on iOS, if you pull photo from one of user's custom album, the app crashes on the assertion `RCTAssert(resolvedPromise == NO, @"Resolved the promise before we finished processing the results.");` . assertion that was assumed to never been reached.

According to iOS doc, the enumerateGroupsWithTypes `usingBlock` block is called with `group=nil` when the iteration is over, but in current react-native implementation, it is stopping in other circumstance (because the `else` case) which is probably a mistake.

You have probably never seen the bug because you didn't tried to use getPhotos with something else than the pre-defined groups, but it should be possible to do so *(and it seems to work fine as soon as I included my fix. Later I should provide a PR that includes a way to list user groups :) but at least I need this to gets in, otherwise it crashes)*.

For instance, User have a Photo Folder (or "album", whatever you call it) called "Instagram", when I call `CameraRoll.getPhotos({ groupName: "Instagram",
Closes https://github.com/facebook/react-native/pull/10272

Differential Revision: D4009342

Pulled By: javache

fbshipit-source-id: a73ca828133b4f0d880c229f9b675538854020de

Swaagie/react-native,ptmt/react-native-macos,ptomasroos/react-native,imjerrybao/react-native,ankitsinghania94/react-native,xiayz/react-native,Purii/react-native,cosmith/react-native,PlexChat/react-native,frantic/react-native,Ehesp/react-native,negativetwelve/react-native,exponent/react-native,hammerandchisel/react-native,shrutic123/react-native,adamjmcgrath/react-native,clozr/react-native,hammerandchisel/react-native,Livyli/react-native,eduardinni/react-native,chnfeeeeeef/react-native,dikaiosune/react-native,jevakallio/react-native,tadeuzagallo/react-native,exponentjs/react-native,lprhodes/react-native,CodeLinkIO/react-native,skevy/react-native,Purii/react-native,shrutic123/react-native,janicduplessis/react-native,PlexChat/react-native,alin23/react-native,makadaw/react-native,mironiasty/react-native,lprhodes/react-native,ankitsinghania94/react-native,naoufal/react-native,hoangpham95/react-native,lprhodes/react-native,makadaw/react-native,farazs/react-native,kesha-antonov/react-native,adamjmcgrath/react-native,alin23/react-native,clozr/react-native,happypancake/react-native,brentvatne/react-native,ptmt/react-native-macos,htc2u/react-native,exponentjs/react-native,thotegowda/react-native,rickbeerendonk/react-native,ankitsinghania94/react-native,happypancake/react-native,tgoldenberg/react-native,forcedotcom/react-native,Ehesp/react-native,cosmith/react-native,myntra/react-native,hammerandchisel/react-native,Andreyco/react-native,eduardinni/react-native,tszajna0/react-native,cdlewis/react-native,jasonnoahchoi/react-native,christopherdro/react-native,ankitsinghania94/react-native,satya164/react-native,dikaiosune/react-native,imjerrybao/react-native,imjerrybao/react-native,charlesvinette/react-native,gilesvangruisen/react-native,jevakallio/react-native,DanielMSchmidt/react-native,thotegowda/react-native,charlesvinette/react-native,clozr/react-native,shrutic/react-native,dikaiosune/react-native,tszajna0/react-native,tszajna0/react-native,brentvatne/react-native,gilesvangruisen/react-native,Bhullnatik/react-native,Purii/react-native,eduardinni/react-native,imjerrybao/react-native,doochik/react-native,ptmt/react-native-macos,satya164/react-native,satya164/react-native,gitim/react-native,Swaagie/react-native,Guardiannw/react-native,csatf/react-native,makadaw/react-native,imDangerous/react-native,ptmt/react-native-macos,Bhullnatik/react-native,mironiasty/react-native,exponentjs/react-native,alin23/react-native,arthuralee/react-native,tgoldenberg/react-native,farazs/react-native,Bhullnatik/react-native,dikaiosune/react-native,shrutic/react-native,charlesvinette/react-native,Maxwell2022/react-native,ptomasroos/react-native,Guardiannw/react-native,facebook/react-native,chnfeeeeeef/react-native,alin23/react-native,esauter5/react-native,hoangpham95/react-native,formatlos/react-native,ptomasroos/react-native,hoangpham95/react-native,eduardinni/react-native,htc2u/react-native,rickbeerendonk/react-native,hoastoolshop/react-native,negativetwelve/react-native,Livyli/react-native,dikaiosune/react-native,DannyvanderJagt/react-native,gilesvangruisen/react-native,salanki/react-native,Ehesp/react-native,makadaw/react-native,janicduplessis/react-native,eduardinni/react-native,xiayz/react-native,javache/react-native,makadaw/react-native,csatf/react-native,mironiasty/react-native,kesha-antonov/react-native,tsjing/react-native,gitim/react-native,happypancake/react-native,doochik/react-native,CodeLinkIO/react-native,brentvatne/react-native,myntra/react-native,salanki/react-native,janicduplessis/react-native,salanki/react-native,pandiaraj44/react-native,pandiaraj44/react-native,csatf/react-native,callstack-io/react-native,DanielMSchmidt/react-native,gitim/react-native,cpunion/react-native,orenklein/react-native,Livyli/react-native,PlexChat/react-native,DannyvanderJagt/react-native,chnfeeeeeef/react-native,Livyli/react-native,PlexChat/react-native,janicduplessis/react-native,lprhodes/react-native,frantic/react-native,myntra/react-native,pandiaraj44/react-native,exponent/react-native,hammerandchisel/react-native,farazs/react-native,shrutic/react-native,facebook/react-native,dikaiosune/react-native,imjerrybao/react-native,pandiaraj44/react-native,lprhodes/react-native,htc2u/react-native,formatlos/react-native,negativetwelve/react-native,Bhullnatik/react-native,doochik/react-native,forcedotcom/react-native,happypancake/react-native,naoufal/react-native,xiayz/react-native,naoufal/react-native,mironiasty/react-native,Guardiannw/react-native,tadeuzagallo/react-native,tsjing/react-native,shrutic/react-native,shrutic123/react-native,frantic/react-native,orenklein/react-native,kesha-antonov/react-native,frantic/react-native,christopherdro/react-native,peterp/react-native,christopherdro/react-native,exponent/react-native,ptomasroos/react-native,clozr/react-native,jadbox/react-native,kesha-antonov/react-native,Livyli/react-native,Swaagie/react-native,negativetwelve/react-native,jadbox/react-native,myntra/react-native,clozr/react-native,exponentjs/react-native,tgoldenberg/react-native,ndejesus1227/react-native,hoangpham95/react-native,xiayz/react-native,arthuralee/react-native,Andreyco/react-native,peterp/react-native,Andreyco/react-native,jasonnoahchoi/react-native,mironiasty/react-native,arthuralee/react-native,cdlewis/react-native,jevakallio/react-native,hammerandchisel/react-native,gilesvangruisen/react-native,janicduplessis/react-native,Maxwell2022/react-native,tsjing/react-native,tszajna0/react-native,Swaagie/react-native,mironiasty/react-native,tsjing/react-native,ndejesus1227/react-native,brentvatne/react-native,jevakallio/react-native,tadeuzagallo/react-native,DanielMSchmidt/react-native,hammerandchisel/react-native,javache/react-native,aljs/react-native,orenklein/react-native,hoastoolshop/react-native,shrutic123/react-native,makadaw/react-native,jadbox/react-native,gilesvangruisen/react-native,tszajna0/react-native,happypancake/react-native,charlesvinette/react-native,ndejesus1227/react-native,htc2u/react-native,frantic/react-native,farazs/react-native,hoastoolshop/react-native,tadeuzagallo/react-native,makadaw/react-native,imDangerous/react-native,aljs/react-native,orenklein/react-native,DannyvanderJagt/react-native,happypancake/react-native,esauter5/react-native,cosmith/react-native,ndejesus1227/react-native,Maxwell2022/react-native,peterp/react-native,cpunion/react-native,salanki/react-native,forcedotcom/react-native,skevy/react-native,tadeuzagallo/react-native,xiayz/react-native,hoangpham95/react-native,cdlewis/react-native,gitim/react-native,kesha-antonov/react-native,formatlos/react-native,jadbox/react-native,tszajna0/react-native,makadaw/react-native,tgoldenberg/react-native,csatf/react-native,tadeuzagallo/react-native,rickbeerendonk/react-native,Livyli/react-native,adamjmcgrath/react-native,skevy/react-native,csatf/react-native,Guardiannw/react-native,Bhullnatik/react-native,tsjing/react-native,tadeuzagallo/react-native,Purii/react-native,rickbeerendonk/react-native,Andreyco/react-native,exponent/react-native,javache/react-native,farazs/react-native,ndejesus1227/react-native,shrutic123/react-native,cdlewis/react-native,brentvatne/react-native,doochik/react-native,ndejesus1227/react-native,myntra/react-native,tgoldenberg/react-native,DannyvanderJagt/react-native,Bhullnatik/react-native,exponent/react-native,chnfeeeeeef/react-native,tsjing/react-native,skevy/react-native,hoastoolshop/react-native,shrutic/react-native,Swaagie/react-native,gitim/react-native,htc2u/react-native,pandiaraj44/react-native,DannyvanderJagt/react-native,chnfeeeeeef/react-native,Ehesp/react-native,Swaagie/react-native,adamjmcgrath/react-native,hammerandchisel/react-native,jasonnoahchoi/react-native,shrutic/react-native,ptomasroos/react-native,rickbeerendonk/react-native,jevakallio/react-native,thotegowda/react-native,DannyvanderJagt/react-native,salanki/react-native,clozr/react-native,jasonnoahchoi/react-native,PlexChat/react-native,alin23/react-native,aaron-goshine/react-native,pandiaraj44/react-native,janicduplessis/react-native,DanielMSchmidt/react-native,farazs/react-native,xiayz/react-native,esauter5/react-native,farazs/react-native,exponent/react-native,ankitsinghania94/react-native,jadbox/react-native,doochik/react-native,eduardinni/react-native,negativetwelve/react-native,skevy/react-native,thotegowda/react-native,imDangerous/react-native,CodeLinkIO/react-native,Livyli/react-native,ndejesus1227/react-native,kesha-antonov/react-native,formatlos/react-native,gitim/react-native,satya164/react-native,makadaw/react-native,cdlewis/react-native,aaron-goshine/react-native,jadbox/react-native,shrutic123/react-native,gilesvangruisen/react-native,facebook/react-native,jevakallio/react-native,Andreyco/react-native,pandiaraj44/react-native,myntra/react-native,satya164/react-native,CodeLinkIO/react-native,orenklein/react-native,christopherdro/react-native,myntra/react-native,formatlos/react-native,charlesvinette/react-native,kesha-antonov/react-native,cosmith/react-native,adamjmcgrath/react-native,mironiasty/react-native,shrutic123/react-native,Maxwell2022/react-native,facebook/react-native,callstack-io/react-native,gitim/react-native,peterp/react-native,Swaagie/react-native,charlesvinette/react-native,esauter5/react-native,aaron-goshine/react-native,ptmt/react-native-macos,salanki/react-native,peterp/react-native,imDangerous/react-native,tadeuzagallo/react-native,Ehesp/react-native,Purii/react-native,facebook/react-native,cpunion/react-native,DanielMSchmidt/react-native,PlexChat/react-native,skevy/react-native,cosmith/react-native,christopherdro/react-native,cosmith/react-native,brentvatne/react-native,alin23/react-native,jasonnoahchoi/react-native,Maxwell2022/react-native,ptmt/react-native-macos,javache/react-native,happypancake/react-native,aljs/react-native,lprhodes/react-native,javache/react-native,ptmt/react-native-macos,lprhodes/react-native,chnfeeeeeef/react-native,cpunion/react-native,tsjing/react-native,CodeLinkIO/react-native,formatlos/react-native,salanki/react-native,facebook/react-native,Maxwell2022/react-native,ndejesus1227/react-native,Maxwell2022/react-native,shrutic/react-native,imDangerous/react-native,exponent/react-native,negativetwelve/react-native,brentvatne/react-native,Purii/react-native,hoangpham95/react-native,tgoldenberg/react-native,tgoldenberg/react-native,doochik/react-native,orenklein/react-native,jevakallio/react-native,cdlewis/react-native,jevakallio/react-native,skevy/react-native,naoufal/react-native,brentvatne/react-native,Guardiannw/react-native,christopherdro/react-native,clozr/react-native,alin23/react-native,kesha-antonov/react-native,skevy/react-native,imDangerous/react-native,myntra/react-native,ankitsinghania94/react-native,thotegowda/react-native,thotegowda/react-native,brentvatne/react-native,aljs/react-native,callstack-io/react-native,adamjmcgrath/react-native,facebook/react-native,Guardiannw/react-native,PlexChat/react-native,esauter5/react-native,forcedotcom/react-native,DanielMSchmidt/react-native,cosmith/react-native,negativetwelve/react-native,naoufal/react-native,cpunion/react-native,naoufal/react-native,chnfeeeeeef/react-native,csatf/react-native,gitim/react-native,imjerrybao/react-native,naoufal/react-native,aljs/react-native,hoastoolshop/react-native,forcedotcom/react-native,gilesvangruisen/react-native,Ehesp/react-native,aljs/react-native,cpunion/react-native,exponentjs/react-native,dikaiosune/react-native,callstack-io/react-native,callstack-io/react-native,callstack-io/react-native,hoastoolshop/react-native,imjerrybao/react-native,rickbeerendonk/react-native,xiayz/react-native,DanielMSchmidt/react-native,DannyvanderJagt/react-native,callstack-io/react-native,chnfeeeeeef/react-native,Bhullnatik/react-native,csatf/react-native,esauter5/react-native,Guardiannw/react-native,aaron-goshine/react-native,rickbeerendonk/react-native,christopherdro/react-native,javache/react-native,hoastoolshop/react-native,peterp/react-native,Purii/react-native,DannyvanderJagt/react-native,rickbeerendonk/react-native,janicduplessis/react-native,eduardinni/react-native,tszajna0/react-native,aaron-goshine/react-native,shrutic/react-native,salanki/react-native,ptmt/react-native-macos,jadbox/react-native,eduardinni/react-native,callstack-io/react-native,Swaagie/react-native,peterp/react-native,charlesvinette/react-native,doochik/react-native,imjerrybao/react-native,jasonnoahchoi/react-native,negativetwelve/react-native,arthuralee/react-native,ptomasroos/react-native,clozr/react-native,arthuralee/react-native,Andreyco/react-native,formatlos/react-native,cdlewis/react-native,cpunion/react-native,Andreyco/react-native,DanielMSchmidt/react-native,aljs/react-native,Ehesp/react-native,CodeLinkIO/react-native,ptomasroos/react-native,mironiasty/react-native,jadbox/react-native,myntra/react-native,PlexChat/react-native,shrutic123/react-native,hoangpham95/react-native,forcedotcom/react-native,thotegowda/react-native,ptomasroos/react-native,happypancake/react-native,dikaiosune/react-native,CodeLinkIO/react-native,tszajna0/react-native,adamjmcgrath/react-native,orenklein/react-native,doochik/react-native,Ehesp/react-native,Guardiannw/react-native,CodeLinkIO/react-native,javache/react-native,esauter5/react-native,aaron-goshine/react-native,imDangerous/react-native,Andreyco/react-native,gilesvangruisen/react-native,esauter5/react-native,htc2u/react-native,exponentjs/react-native,charlesvinette/react-native,doochik/react-native,hammerandchisel/react-native,alin23/react-native,jasonnoahchoi/react-native,jasonnoahchoi/react-native,naoufal/react-native,forcedotcom/react-native,cpunion/react-native,aaron-goshine/react-native,Maxwell2022/react-native,rickbeerendonk/react-native,lprhodes/react-native,tgoldenberg/react-native,Purii/react-native,hoangpham95/react-native,javache/react-native,janicduplessis/react-native,negativetwelve/react-native,cosmith/react-native,facebook/react-native,forcedotcom/react-native,imDangerous/react-native,aaron-goshine/react-native,exponentjs/react-native,christopherdro/react-native,javache/react-native,pandiaraj44/react-native,htc2u/react-native,htc2u/react-native,satya164/react-native,farazs/react-native,satya164/react-native,adamjmcgrath/react-native,aljs/react-native,exponentjs/react-native,mironiasty/react-native,cdlewis/react-native,formatlos/react-native,cdlewis/react-native,kesha-antonov/react-native,ankitsinghania94/react-native,jevakallio/react-native,thotegowda/react-native,xiayz/react-native,satya164/react-native,orenklein/react-native,ankitsinghania94/react-native,csatf/react-native,farazs/react-native,Livyli/react-native,formatlos/react-native,Bhullnatik/react-native,exponent/react-native,tsjing/react-native,peterp/react-native,hoastoolshop/react-native,facebook/react-native