Skip to content

DocumentPicker.isCancel not working #567

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

You must be logged in to vote

Thanks @vonovak for your answer and your time. It worked out without awaiting the promise and using .isCancel. Here is what works fine for me:

setLoading(true);
DocumentPicker.pick({
    type: types.pdf,
})
.then(setResult) 
.catch(() => {
    setLoading(false);
});    

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by manuelwenner
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