You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
..installation must be made easy.+followed allsteps still getting the error
Cannot read property 'pick' of undefined
FYI i followed all you instructions
@OverRide
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
new DocumentPickerPackage() // Add package
);
}
on adding this
android - cannot find symbol MainReactPackage
set canOverrideExistingModule=true in React Native error with red screen
// file: MainApplication.java
...
importcom.reactnativedocumentpicker.ReactNativeDocumentPicker; // <-- this line for import packagepublicclassMainApplicationextendsApplicationimplementsReactApplication {
I am having the same issue stated above. No matter what I do it keeps happening every single time I try to run the app to test:
@OverRide
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
new DocumentPickerPackage() // Add package
);
}
on adding this
android - cannot find symbol MainReactPackage
I Was having same issue i just do npx react-native unlink and then re-link again after linking if package entry is not present in app/build.gradle then You need to add manually
This working for me .
Same issue, using the expo managed workflow. "Possible Unhandled Promise Rejection : TypeError: Cannot read property 'pick' of null. And i am using pickSingle.
Activity
Elyx0 commentedon Jul 19, 2019
What version of react native & on ios or android ? Which version? Plugin version?
kunalverma94 commentedon Jul 20, 2019
"react-native-document-picker": "^3.2.2",
react-native-cli: 2.0.1
react-native: 0.60.3
win 10 ..
running app n redmi note 3
kunalverma94 commentedon Jul 20, 2019
if i follow these steps https://www.npmjs.com/package/react-native-document-picker#android get error
--error in getPackages
@OverRide
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
new DocumentPickerPackage() // Add package
);
}
on adding this
android - cannot find symbol MainReactPackage
set canOverrideExistingModule=true in React Native error with red screen
Elyx0 commentedon Jul 20, 2019
Does it change something if you do
If it doesn't can you try this version https://github.com/Elyx0/react-native-document-picker/tree/v2 (doc changed)
by using
"react-native-document-picker": "~2.3.0"(npm install react-native-document-picker@2.3.0) and see if it bugs?sentry0 commentedon Jul 22, 2019
I was having the same issue after upgrading and for me it was a simple import change that did the trick...
I went from:
import { DocumentPicker } from 'react-native-document-picker'To:
import DocumentPicker from 'react-native-document-picker'No more brackets :P
kunalverma94 commentedon Jul 22, 2019
thanks @Elyx0 and @sentry0
MarlonX19 commentedon Oct 11, 2019
I am having the same issue stated above. No matter what I do it keeps happening every single time I try to run the app to test:
@OverRide
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
new DocumentPickerPackage() // Add package
);
}
on adding this
android - cannot find symbol MainReactPackage
Shahrukh0396 commentedon Mar 3, 2020
i am facing the same issue on ios
react-native: 0.61.5
ios :9.0
ghafartanveer commentedon Mar 6, 2020
i'm facing the same issue. Can anyone guide me how to resolve this issue?
Zakyyy commentedon May 30, 2020
@ghafartanveer make sure that after installing the package you restarted the app again and closed the initiated Metro builder
kostiantyn-solianyk commentedon Jul 2, 2020
same here
Samtapes commentedon Jul 10, 2020
same
PrasadGhan commentedon Jul 30, 2020
I Was having same issue i just do npx react-native unlink and then re-link again after linking if package entry is not present in app/build.gradle then You need to add manually
This working for me .
Pragnesh-Dharajiya commentedon Nov 4, 2020
i'm facing the same issue on IOS. Can anyone guide me how to resolve this issue?
prabhario commentedon Jan 20, 2021
I'm facing this issue "TypeError: Cannot read property 'pick' of undefined" in react native windows application
Does anyone have solution for this please ?
fernandokbs commentedon Jan 25, 2021
I had to use this version
"react-native-document-picker": "^4.1.0",
It solved my problem
Ravi-Pal commentedon Oct 5, 2021
I am facing same issue ,using "react-native-document-picker": "^6.1.1"
Please help me

AdithyaBellamkonda commentedon Dec 30, 2021
@prabhario did you resolve that issue because I'm having same issue, and I'm using windows application
lukabanjac commentedon Mar 22, 2022
Run
pod installand rebuild an app if you haven't already. It's in the docs and I missed it. Fixed for me after I did it.Vashu473 commentedon Mar 28, 2022
Restart your bundler it will help you.
flatingofamily commentedon Mar 28, 2023
the same problem guys :(
MacKenzieHnC commentedon Mar 28, 2023
Anybody got a repro?
ChronoByteCosmonaut commentedon Mar 31, 2023
Same issue, using the expo managed workflow. "Possible Unhandled Promise Rejection : TypeError: Cannot read property 'pick' of null. And i am using pickSingle.
navtesh21 commentedon Aug 8, 2024
does anyone has altenative to react native document picker because this one is getting this error TypeError: Cannot read property 'pick' of null