fix(lib): fix groupType all not working on Android (#57)

fixes #56
This commit is contained in:
Bartol Karuza 2019-05-13 20:44:56 +02:00 committed by GitHub
parent 1e37b29426
commit 7c05112883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

4
.gitignore vendored
View File

@ -39,6 +39,10 @@ build/
local.properties local.properties
*.iml *.iml
**/.settings
**/.classpath
**/.project
# BUCK # BUCK
buck-out/ buck-out/
\.buckd/ \.buckd/

View File

@ -216,9 +216,6 @@ public class CameraRollModule extends ReactContextBaseJavaModule {
ReadableArray mimeTypes = params.hasKey("mimeTypes") ReadableArray mimeTypes = params.hasKey("mimeTypes")
? params.getArray("mimeTypes") ? params.getArray("mimeTypes")
: null; : null;
if (params.hasKey("groupTypes")) {
throw new JSApplicationIllegalArgumentException("groupTypes is not supported on Android");
}
new GetMediaTask( new GetMediaTask(
getReactApplicationContext(), getReactApplicationContext(),