I use expo document picker which works perfectly fine on android but on IOS, it does not work. I only get an option to open icloud and cannot browse through the device to pick a document.
const documentFile = await DocumentPicker.getDocumentAsync({
type: ["image/*", "application/pdf"]
})
I also tried using documentPicker from react-native-document-picker but when I use documentPicker.pick it says, documentPicker is undefined. cannot access method of undefined object.
const documentFile = await DocumentPicker.pick({
presentationStyle: 'fullScreen'
});
I tried running react-native link after npm install and double checked the import statement. But, none of it resolved the problem.