Skip to content

Commit a8d7f78

Browse files
authored
Merge pull request #579 from riccardonuzz/patch-1
Update README.md
2 parents 2755ac1 + 27d1c99 commit a8d7f78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ The following constants are available on the `RNFS` export:
364364
- `ExternalDirectoryPath` (`String`) The absolute path to the external files, shared directory (android only)
365365
- `ExternalStorageDirectoryPath` (`String`) The absolute path to the external storage, shared directory (android only)
366366

367+
IMPORTANT: when using `ExternalStorageDirectoryPath` it's necessary to request permissions (on Android) to read and write on the external storage, here an example: [React Native Offical Doc] (https://facebook.github.io/react-native/docs/permissionsandroid)
368+
367369
### `readDir(dirpath: string): Promise<ReadDirItem[]>`
368370

369371
Reads the contents of `path`. This must be an absolute path. Use the above path constants to form a usable file path.

0 commit comments

Comments
 (0)