Document picker return type is different on web and on android

Please provide the following:

  1. SDK Version: 48
  2. Platforms(Android/iOS/web/all): Android, web
  3. expo-document-picker

I am using expo-document-picker v11.5.4.

When I call getDocumentAsync on web I get DocumentPickerResult type with array of DocumentPickerAsset inside.

But when I use test my app in Android simulator I get back something like this

{ 
size:255333, 
name: filename.pdf, 
uri:file:///data/user/0/host.exp.exponent/cache/DocumentPicker/379ee680-665f-4c31-a9c5-53e46fb31746.pdf,
type:success,
mimeType:application/pdf
}

Does anyone have the idea what am I doing wrong?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.