Skip to content

The DocumentPicker is not openning the document picking screen #821

Answered by EliusHHimel
EliusHHimel asked this question in Q&A
Discussion options

You must be logged in to vote

My code was exactly how you suggested when I was facing the problem. Later, when I tried debugging, it was giving an error saying Cannot read property 'pick' of undefined. However, I solved the problem by taking the following steps.

import { pick } from '@react-native-documents/picker';
...

pick({...})

then,

cd android
./gradlew clean

Then run the build command, and it should work just fine.

Note: For some people, the approach suggested by @einjunge99 might work; if not, I'm sure the steps above will resolve the issue.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@EliusHHimel
Comment options

Answer selected by EliusHHimel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants