static ReadableMap getResponseMap(List<Uri> fileUris, Options options, Context context) throws RuntimeException {
        WritableArray assets = Arguments.createArray();

        for (int i = 0; i < fileUris.size(); ++i) {
            Uri uri = fileUris.get(i);

            Uri appSpecificUrl = uri;
            if (uri.getScheme().contains("content")) {
                appSpecificUrl = getAppSpecificStorageUri(uri, context);
            }

            // Call getAppSpecificStorageUri in the if block to avoid copying unsupported files
            if (isImageType(uri, context)) {
                appSpecificUrl = resizeOrConvertImage(appSpecificUrl, context, options);
                assets.pushMap(getImageResponseMap(uri, appSpecificUrl, options, context));
            } else if (isVideoType(uri, context)) {
                if (uri.getScheme().contains("content")) {
                    appSpecificUrl = getAppSpecificStorageUri(uri, context);
                }
                assets.pushMap(getVideoResponseMap(uri, appSpecificUrl, options, context));
            } else {
                throw new RuntimeException("Unsupported file type");
            }
        }

        WritableMap response = Arguments.createMap();
        response.putArray("assets", assets);

        return response;
    }
Verifies the content typs of a file URI. A helper function
for isVideoType and isImageType

@param contentMimeType - "video/" or "image/"
@param uri             - file uri
@param context         - react context
@return a boolean to determine if file is of specified content type i.e. image or video
android/src/main/java/com/imagepicker/Utils.java