1
1
import { DocumentPicker } from "react-native-document-picker" ;
2
2
3
- DocumentPicker . types . allFiles
4
- DocumentPicker . types . audio
5
- DocumentPicker . types . images
6
- DocumentPicker . types . plainText
7
- DocumentPicker . types . video
3
+ // Option is correct about pick
8
4
9
5
DocumentPicker . pick ( {
10
6
type : [ DocumentPicker . types . allFiles ]
11
- } )
7
+ } )
8
+
9
+ DocumentPicker . pick ( {
10
+ type : [ DocumentPicker . types . audio ]
11
+ } )
12
+
13
+ DocumentPicker . pick ( {
14
+ type : [ DocumentPicker . types . images ]
15
+ } )
16
+
17
+ DocumentPicker . pick ( {
18
+ type : [ DocumentPicker . types . plainText ]
19
+ } )
20
+
21
+ DocumentPicker . pick ( {
22
+ type : [ DocumentPicker . types . video ]
23
+ } )
24
+
25
+ DocumentPicker . pick ( {
26
+ type : [ DocumentPicker . types . pdf ]
27
+ } )
28
+
29
+ DocumentPicker . pick ( {
30
+ type : [ DocumentPicker . types . video , DocumentPicker . types . pdf , 'public.audio' ]
31
+ } )
32
+
33
+ // Option is correct about pickMultiple
34
+
35
+ DocumentPicker . pickMultiple ( {
36
+ type : [ DocumentPicker . types . allFiles ]
37
+ } )
38
+
39
+ DocumentPicker . pickMultiple ( {
40
+ type : [ DocumentPicker . types . allFiles ]
41
+ } )
42
+
43
+ DocumentPicker . pickMultiple ( {
44
+ type : [ DocumentPicker . types . audio ]
45
+ } )
46
+
47
+ DocumentPicker . pickMultiple ( {
48
+ type : [ DocumentPicker . types . images ]
49
+ } )
50
+
51
+ DocumentPicker . pickMultiple ( {
52
+ type : [ DocumentPicker . types . plainText ]
53
+ } )
54
+
55
+ DocumentPicker . pickMultiple ( {
56
+ type : [ DocumentPicker . types . video ]
57
+ } )
58
+
59
+ DocumentPicker . pickMultiple ( {
60
+ type : [ DocumentPicker . types . pdf ]
61
+ } )
62
+
63
+ DocumentPicker . pickMultiple ( {
64
+ type : [ DocumentPicker . types . video , DocumentPicker . types . pdf , 'public.audio' ]
65
+ } )
0 commit comments