'react-native how to select ios device documents

i'm using react-native-document-picker but i can't see all documents in device. i want to choose all kind of documents(.jpg, .pdf, .doc etc.)

how can i get all documents in ios device

const selectMultipleFile = async () => {
    //Opening Document Picker for selection of multiple file
    try {
      const results = await DocumentPicker.pick({
        allowMultiSelection: true,
        type: [types.images, types.pdf],
        //allowMultiSelection: true,
        //There can me more options as well find above
      });
      for (const res of results) {
        //Printing the log realted to the file
        console.log('res : ' + JSON.stringify(res));
        console.log('URI : ' + res.uri);
        console.log('Type : ' + res.type);
        console.log('File Name : ' + res.name);
        console.log('File Size : ' + res.size);
      }
      console.log(results);
      //Setting the state to show multiple file attributes
      setMultipleFile(results);
      setModalVisible(true);
    } catch (err) {
      //Handling any exception (If any)
      if (DocumentPicker.isCancel(err)) {
        //If user canceled the document selection
        //console.log(err);
        //Alert.alert('UYARI!', 'Dosya seçimi iptal edildi.', [{text: 'TAMAM'}]);
      } else {
        //For Unknown Error
        //Alert.alert('UYARI!', 'Unknown Error: ' + JSON.stringify(err));
        throw err;
      }
    }
  };


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source