We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8dd453 commit 60b39b4Copy full SHA for 60b39b4
example/src/App.tsx
@@ -7,12 +7,17 @@ import DocumentPicker, {
7
isInProgress,
8
types,
9
} from 'react-native-document-picker'
10
+import { useEffect } from 'react'
11
12
export default function App() {
13
const [result, setResult] = React.useState<
14
Array<DocumentPickerResponse> | DirectoryPickerResponse | undefined | null
15
>()
16
17
+ useEffect(() => {
18
+ console.log(JSON.stringify(result, null, 2))
19
+ }, [result])
20
+
21
const handleError = (err: Error) => {
22
if (DocumentPicker.isCancel(err)) {
23
console.warn('cancelled')
0 commit comments