react-native-documents / document-picker

Document Picker for React Native
https://react-native-documents.github.io/
MIT License
1.35k stars 437 forks source link

Help - infinite loading pdf files #583

Closed felipe1181 closed 2 years ago

felipe1181 commented 2 years ago

Question

If you're asking a question, please use discussions. The issue template is reserved for bugs and feature requests only. Thank you.

I need help with infinite loading. I want select only pdf...

  async function handleOpenFile() {
    const response = await DocumentPicker.pickSingle({
      copyTo: 'documentDirectory',
      type: [DocumentPicker.types.pdf],
    });
    return response;
  }
Captura de Tela 2022-08-11 às 23 23 00
vonovak commented 2 years ago

Hello and thanks for reporting, unfortunately, the behavior inside of the native document picker is outside our reach. I suggest you try this out on a real device, sometimes there are differences in behavior. Thank you 🙂